るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.087秒)
トップページ > クエリ:t[x] > クエリ:dup[x] > クラス:BasicObject[x]

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

ライブラリ

検索結果

BasicObject#equal?(other) -> bool (3107.0)

オブジェクトが other と同一であれば真を、さもなくば偽を返します。

...が other と同一であれば真を、さもなくば偽を返します。

このメソッドは2つのオブジェクトが同一のものであるかどうかを判定します。
一般にはこのメソッドを決して再定義すべきでありません。
ただし、 BasicObject の位...
...い。

@param other 比較対象となるオブジェクト
@return other が self 自身であれば真、さもなくば偽

//emlist[例][ruby]{
original = "a"
copied = original.dup
substituted = original

original == copied #=> true
original == substituted #=> true
original.equal?...
...copied #=> false
original.equal? substituted #=> true
//}

@see Object#equal?, Object#==, Object#eql?...