ライブラリ
- ビルトイン (1848)
- bigdecimal (36)
- csv (36)
- date (12)
- dbm (12)
- delegate (12)
- digest (12)
- drb (24)
- fiddle (24)
- gdbm (12)
- ipaddr (36)
- matrix (48)
-
net
/ ftp (10) - openssl (108)
- ostruct (12)
- pathname (36)
- prime (24)
- rake (24)
-
rdoc
/ context (12) -
rexml
/ document (48) -
rinda
/ rinda (12) -
rubygems
/ package / tar _ header (12) -
rubygems
/ platform (24) -
rubygems
/ requirement (36) -
rubygems
/ version (12) - sdbm (24)
- set (5)
- socket (12)
- uri (12)
- win32ole (12)
- zlib (12)
クラス
- Array (219)
- BasicObject (48)
- BasicSocket (12)
- BigDecimal (36)
- Bignum (9)
- Binding (12)
-
CSV
:: Row (12) -
CSV
:: Table (24) - Complex (12)
- DBM (12)
-
DRb
:: DRbObject (24) - Data (6)
- Date (12)
- Delegator (12)
-
Digest
:: Base (12) -
Enumerator
:: ArithmeticSequence (7) -
Enumerator
:: Lazy (58) - Exception (24)
- FalseClass (24)
-
Fiddle
:: Pointer (24) - Fixnum (3)
- Float (24)
- GDBM (12)
-
Gem
:: Package :: TarHeader (12) -
Gem
:: Platform (24) -
Gem
:: Requirement (36) -
Gem
:: Version (12) - Hash (100)
- IPAddr (36)
- Integer (40)
- KeyError (8)
- MatchData (24)
- Matrix (24)
- Method (68)
-
Net
:: FTP :: MLSxEntry (10) - Numeric (12)
- Object (60)
-
OpenSSL
:: BN (48) -
OpenSSL
:: PKey :: EC :: Group (24) -
OpenSSL
:: PKey :: EC :: Point (24) -
OpenSSL
:: SSL :: Session (12) - OpenStruct (12)
- Pathname (36)
- Prime (24)
-
Process
:: Status (12) -
RDoc
:: Context :: Section (12) -
REXML
:: Attribute (12) -
REXML
:: Comment (12) -
REXML
:: Instruction (12) -
REXML
:: XMLDecl (12) -
Rake
:: FileList (12) - Random (12)
- Range (138)
- Rational (12)
- Regexp (36)
-
Rinda
:: DRbObjectTemplate (12) -
RubyVM
:: InstructionSequence (24) - SDBM (24)
- Set (8)
- String (247)
- Struct (24)
- Symbol (36)
- TrueClass (36)
-
URI
:: Generic (12) - UnboundMethod (36)
- Vector (24)
-
WIN32OLE
_ TYPE (12) -
Zlib
:: GzipReader (12)
モジュール
- Comparable (12)
- Enumerable (462)
-
Rake
:: Cloneable (12)
キーワード
- != (12)
- & (12)
- === (179)
- =~ (12)
- [] (80)
- ^ (24)
-
_ _ id _ _ (12) - allbits? (8)
- assoc (12)
-
backtrace
_ locations (12) - call (16)
-
chunk
_ while (12) - clone (24)
- count (48)
-
default
_ event _ sources (12) - delete (24)
-
delete
_ if (12) - detect (24)
- disasm (12)
- disassemble (12)
- dump (12)
- each (24)
- eql? (234)
- equal? (12)
- file? (10)
- filter (14)
- filter! (14)
- find (24)
-
find
_ all (24) -
find
_ index (36) - getpeername (12)
- hash (36)
- id2name (12)
- include? (41)
- intern (12)
-
keep
_ if (19) - key (8)
- lazy (12)
- lineno= (12)
-
local
_ variable _ defined? (12) - max (130)
- member? (25)
- min (130)
- minmax (12)
-
mod
_ inverse (12) - nobits? (8)
- none? (53)
- one? (53)
- pack (21)
- partition (24)
- rassoc (12)
- reject (36)
- reject! (12)
-
satisfied
_ by? (12) - select (60)
- select! (19)
- slice (72)
-
slice
_ after (11) -
slice
_ before (36) -
slice
_ when (11) - sort (24)
- split (19)
- sum (12)
-
to
_ s (12) -
to
_ sym (12) - unpack (12)
- | (24)
検索結果
先頭5件
-
DRb
:: DRbObject # ==(other) -> bool (27301.0) -
DRb::DRbObject オブジェクト同士が同じであるなら真を返します。
...DRb::DRbObject オブジェクト同士が同じであるなら真を返します。
この同値判定は、
オブジェクトが参照している URI と識別子が等しいかどうかでします。... -
Comparable
# ==(other) -> bool (24313.0) -
比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が 0 を返した時に、true を返します。 それ以外を返した場合は、false を返します。
...ジェクト同士を比較します。
<=> が 0 を返した時に、true を返します。
それ以外を返した場合は、false を返します。
@param other 自身と比較したいオブジェクトを指定します。
//emlist[例][ruby]{
1 == 1 # => true
1 == 2 # => false
//}... -
URI
:: Generic # ==(uri) -> bool (24307.0) -
引数に指定した URI (文字列またはURIオブジェクト)との一致判定を行い ます。URI は正規化して比較されます。
...た URI (文字列またはURIオブジェクト)との一致判定を行い
ます。URI は正規化して比較されます。
@param uri 比較したい URI を URI オブジェクトで指定します。
例:
require 'uri'
u1 = URI.parse('http://example.com/?hoge')
u2 = URI.parse('http:......//Example.Com/?hoge')
p u1 == u2 #=> true... -
REXML
:: Attribute # ==(other) -> bool (24301.0) -
属性の名前と値が other と一致する場合に真を返します。
...属性の名前と値が other と一致する場合に真を返します。... -
Random
# ==(other) -> bool (21379.0) -
乱数生成器が等しい状態であるならばtrue を返します。
...乱数生成器が等しい状態であるならばtrue を返します。
@param other 比較対象の乱数生成器
//emlist[例][ruby]{
r1 = Random.new(1)
r2 = Random.new(1)
p r1 == r2 # => true
r2.rand
p r1 == r2 # => false
r1.rand
p r1 == r2 # => true
//}... -
Array
# ==(other) -> bool (21335.0) -
自身と other の各要素をそれぞれ順に == で比較し て、全要素が等しければ true を返します。そうでない場合には false を返します。
...と other の各要素をそれぞれ順に == で比較し
て、全要素が等しければ true を返します。そうでない場合には false を返します。
@param other 自身と比較したい配列を指定します。
@see Object#==
//emlist[例][ruby]{
[ "a", "c" ] == [ "a",......"c", 7 ] #=> false
[ "a", "c", 7 ] == [ "a", "c", 7 ] #=> true
[ "a", "c", 7 ] == [ "a", "d", "f" ] #=> false
//}... -
Range
# ==(other) -> bool (21335.0) -
指定された other が Range クラスのインスタンスであり、 始端と終端が == メソッドで比較して等しく、Range#exclude_end? が同じ場合に true を返します。そうでない場合に false を返します。
...指定された other が Range クラスのインスタンスであり、
始端と終端が == メソッドで比較して等しく、Range#exclude_end? が同じ場合に
true を返します。そうでない場合に false を返します。
@param other 自身と比較したいオブジェ......クトを指定します。
//emlist[例][ruby]{
p (1..2) == (1..2) # => true
p (1..2) == (1...2) # => false
p (1..2) == Range.new(1.0, 2.0) # => true
//}... -
Rational
# ==(other) -> bool (21331.0) -
数値として等しいか判定します。
...。
@param other 自身と比較する数値
@return self と other が等しい場合 true を返します。
そうでなければ false を返します。
//emlist[例][ruby]{
Rational(2, 3) == Rational(2, 3) # => true
Rational(5) == 5 # => true
Rational......(0) == 0.0 # => true
Rational('1/3') == 0.33 # => false
Rational('1/2') == '1/2' # => false
//}... -
Object
# ==(other) -> bool (21325.0) -
オブジェクトと other が等しければ真を返します。
...オブジェクトと other が等しければ真を返します。
このメソッドは各クラスの性質に合わせて再定義すべきです。
多くの場合、オブジェクトの内容が等しければ真を返すように
(同値性を判定するように)再定義されるこ......では equal? と同じオブジェクト
の同一性判定になっています。
@param other 比較するオブジェクトです。
//emlist[例][ruby]{
o = Object.new
p(o.eql?(o)) #=> true
p(o.eql?(Object.new)) #=> false
//}
下記の例のように、各クラスの性質に合わせて......再定義されることが期待されています。
//emlist[適切に再定義されている例][ruby]{
p("foo" == "bar") #=> false
p("foo" == "foo") #=> true
p(4 == 4) #=> true
p(4 == 4.0) #=> true
//}
@see Object#equal?,Object#eql?...