るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.025秒)

別のキーワード

  1. _builtin dup
  2. singleton dup
  3. etc sc_re_dup_max
  4. set dup
  5. bigdecimal dup

ライブラリ

クラス

検索結果

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

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

...@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?...