Ruby 1.9.2 Reference Manual > All Libraries > Builtin Library > class Hash > compare_by_identity?
compare_by_identity? -> boolハッシュがキーの一致判定をオブジェクトの同一性を用いて行っているならば真を返します。
h1 = {}
p h1.compare_by_identity? #=> false
h1.compare_by_identity
p h1.compare_by_identity? #=> true
[SEE_ALSO] Hash#compare_by_identity