るりまサーチ (Ruby 2.5.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.077秒)
トップページ > クエリ:l[x] > クエリ:>[x] > クエリ:equal?[x] > バージョン:2.5.0[x] > クラス:Hash[x]

別のキーワード

  1. _builtin >
  2. bigdecimal >
  3. integer >
  4. complex >
  5. module >

ライブラリ

検索結果

Hash#equal?(other) -> bool (72904.0)

指定された other が self 自身である場合のみ真を返します。

...指定された other が self 自身である場合のみ真を返します。

@param other 自身と比較したい Hash オブジェクトを指定します。

//emlist[例][ruby]{
p({}.equal?({})) #=> false
a = {}
p a.equal?(a) #=> true
//}

@see Hash#==...