hash -> Integer[permalink][rdoc]-
self のハッシュ値を返します。 eql? で等しい文字列は、常にハッシュ値も等しくなります。
例"test".hash # => 4038258770210371295 ("te" + "st").hash == "test".hash # => true[SEE_ALSO] Hash
このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ
hash -> Integer[permalink][rdoc]self のハッシュ値を返します。 eql? で等しい文字列は、常にハッシュ値も等しくなります。
例"test".hash # => 4038258770210371295
("te" + "st").hash == "test".hash # => true
[SEE_ALSO] Hash