別のキーワード
ライブラリ
- ビルトイン (1274)
- bigdecimal (11)
-
cgi
/ core (22) - dbm (11)
- digest (22)
- fiddle (22)
- gdbm (11)
- ipaddr (33)
- matrix (44)
-
net
/ ftp (9) - openssl (99)
- ostruct (11)
- pathname (44)
- prime (22)
-
rinda
/ rinda (11) -
rubygems
/ package / tar _ header (11) -
rubygems
/ platform (22) -
rubygems
/ requirement (33) -
rubygems
/ version (11) - sdbm (33)
- set (54)
- socket (44)
- uri (11)
- win32ole (11)
- zlib (11)
クラス
- Addrinfo (33)
- Array (218)
- BasicObject (11)
- BasicSocket (11)
- BigDecimal (11)
- CGI (22)
- Complex (11)
- DBM (11)
- Data (4)
-
Digest
:: Base (22) -
Enumerator
:: Lazy (43) - Exception (22)
- FalseClass (33)
-
Fiddle
:: Pointer (22) - File (11)
- GDBM (11)
-
Gem
:: Package :: TarHeader (11) -
Gem
:: Platform (22) -
Gem
:: Requirement (33) -
Gem
:: Version (11) - Hash (82)
- IPAddr (33)
- KeyError (7)
- Matrix (44)
- Method (33)
- Module (11)
-
Net
:: FTP :: MLSxEntry (9) - Numeric (55)
- Object (55)
-
OpenSSL
:: BN (44) -
OpenSSL
:: PKey :: EC :: Group (22) -
OpenSSL
:: PKey :: EC :: Point (22) -
OpenSSL
:: SSL :: Session (11) - OpenStruct (11)
- Pathname (44)
- Prime (22)
- Proc (55)
-
Process
:: Status (11) - Random (33)
- Range (32)
- Regexp (33)
-
Rinda
:: DRbObjectTemplate (11) - SDBM (33)
- Set (54)
- String (236)
- Struct (22)
- Symbol (22)
- Thread (11)
- Time (44)
- TrueClass (33)
-
URI
:: Generic (11) - UnboundMethod (33)
-
WIN32OLE
_ TYPE (11) -
Zlib
:: GzipReader (11)
モジュール
- Comparable (11)
- Enumerable (102)
キーワード
- != (11)
- % (11)
- & (22)
- === (128)
- =~ (11)
- [] (77)
- ^ (22)
- assoc (11)
-
backtrace
_ locations (11) - call (11)
-
chunk
_ while (11) - clone (11)
- crypt (11)
- dedup (2)
-
default
_ event _ sources (11) - delete (22)
-
delete
_ if (33) - detect (22)
- div (11)
- divide (22)
- downcase (8)
- dump (11)
- dup (11)
- each (22)
- eigen (11)
- eigensystem (11)
- eql? (134)
- file? (9)
- find (22)
-
find
_ index (33) - getgm (11)
- getlocal (22)
- getpeername (11)
- getutc (11)
- group (11)
-
has
_ value? (11) - hash (33)
- header (11)
- id2name (11)
- include? (23)
- index (33)
- intern (11)
- join (11)
-
keep
_ if (22) - key (7)
- lazy (22)
- lineno= (11)
- lstat (11)
- lup (11)
-
lup
_ decomposition (11) - map (11)
-
marshal
_ dump (11) -
marshal
_ load (11) - member? (12)
-
mod
_ inverse (11) - modulo (11)
- none? (13)
- one? (13)
- out (11)
- pack (19)
- partition (22)
- pfamily (11)
- protocol (11)
- rassoc (11)
- reject! (33)
- remainder (11)
- rindex (33)
-
satisfied
_ by? (11) - select (33)
- select! (10)
- sign (11)
- slice (66)
-
slice
_ after (10) -
slice
_ before (11) - socktype (11)
- split (17)
-
to
_ h (17) -
to
_ hash (11) -
to
_ proc (11) -
to
_ s (11) -
to
_ sym (11) - unpack (11)
- value? (11)
- yield (11)
- | (22)
検索結果
先頭5件
-
IPAddr
# ==(ipaddr) -> bool (21213.0) -
IPAddr オブジェクト同士が等しいかを比較します。
...IPAddr オブジェクト同士が等しいかを比較します。
@param ipaddr 比較対象の IPAddr オブジェクト。
また、数値や文字列も受け付けます。
例:
require "ipaddr"
p IPAddr.new("192.168.0.1") == IPAddr.new("192.168.0.1/24") # => false... -
Exception
# ==(other) -> bool (21159.0) -
自身と指定された other のクラスが同じであり、 message と backtrace が == メソッドで比較して 等しい場合に true を返します。そうでない場合に false を返します。
...身と指定された other のクラスが同じであり、
message と backtrace が == メソッドで比較して
等しい場合に true を返します。そうでない場合に false を返します。
@param other 自身と比較したいオブジェクトを指定します。......定した場合は
Exception#exception を実行して変換を試みます。
//emlist[例][ruby]{
require "date"
def check_long_month(month)
return if Date.new(2000, month, -1).day == 31
raise "#{month} is not long month"
end
def get_exception
return begin
yield
rescue =......ap { |e | get_exception { check_long_month(e) } }
p results.map { |e| e.class }
# => [RuntimeError, RuntimeError, RuntimeError]
p results.map { |e| e.message }
# => ["2 is not long month", "2 is not long month", "4 is not long month"]
# class, message, backtrace が同一のため true になる
p... -
Regexp
# ==(other) -> bool (21155.0) -
otherが同じパターン、オプション、文字コードの正規表現であったらtrueを返します。
...あったらtrueを返します。
@param other 正規表現を指定します。
//emlist[例][ruby]{
p /^eee$/ == /~eee$/x # => false
p /^eee$/ == /~eee$/i # => false
p /^eee$/e == /~eee$/u # => false
p /^eee$/ == Regexp.new("^eee$") # => true
p /^eee$/.eql?(/^eee$/) # => tru... -
Pathname
# ==(other) -> bool (21137.0) -
パス名を比較し、 other と同じなら真を返します。大文字小文字は区別されます。 other は Pathname オブジェクトでなければなりません。
...。
other は Pathname オブジェクトでなければなりません。
パス名の比較は単純にパス文字列の比較によって行われるので、論理的に
同じパスでもパス文字列が違えば異なると判断されます。
@param other 比較対象の Pathname オブ......ジェクトを指定します。
//emlist[例][ruby]{
require 'pathname'
p Pathname.new("foo/bar") == Pathname.new("foo/bar")
p Pathname.new("foo/bar") == Pathname.new("foo//bar")
p Pathname.new("foo/../foo/bar") == Pathname.new("foo/bar")
# => true
# false
# false
//}... -
Fiddle
:: Pointer # ==(other) -> bool (21125.0) -
ポインタの指すアドレスが同一ならばtrueを返します。
...タの指すアドレスが同一ならばtrueを返します。
@param other 比較対象の Pointer オブジェクト
例:
require 'fiddle'
s = 'abc'
cptr = Fiddle::Pointer[s]
cptr0 = Fiddle::Pointer[s]
cptr1 = cptr + 1
p cptr == cptr1 #=> false
p cptr == cptr0 #=> true... -
Complex
# ==(other) -> bool (21119.0) -
数値として等しいか判定します。
...数値として等しいか判定します。
@param other 自身と比較する数値
//emlist[例][ruby]{
Complex(2, 1) == Complex(1) # => false
Complex(1, 0) == Complex(1) # => true
Complex(1, 0) == 1 # => true
//}... -
Comparable
# ==(other) -> bool (21113.0) -
比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が 0 を返した時に、true を返します。 それ以外を返した場合は、false を返します。
...ジェクト同士を比較します。
<=> が 0 を返した時に、true を返します。
それ以外を返した場合は、false を返します。
@param other 自身と比較したいオブジェクトを指定します。
//emlist[例][ruby]{
1 == 1 # => true
1 == 2 # => false
//}... -
Gem
:: Package :: TarHeader # ==(other) -> bool (21101.0) -
自身と other が等しければ真を返します。 そうでない場合は偽を返します。
...自身と other が等しければ真を返します。
そうでない場合は偽を返します。
@param other 比較対象のオブジェクトを指定します。... -
Gem
:: Platform # ==(other) -> bool (21101.0) -
自身と other が同じプラットフォームである場合に真を返します。 そうでない場合は偽を返します。
...ムである場合に真を返します。
そうでない場合は偽を返します。
同じプラットフォームであるとは、二つのプラットフォームの
CPU, OS, バージョンが同じであるということです。
@param other 比較対象のオブジェクトです。... -
OpenSSL
:: BN # ==(other) -> bool (21101.0) -
自身と other が等しい場合に true を返します。
...自身と other が等しい場合に true を返します。
@param other 比較する数...