Ruby 4.1 リファレンスマニュアル

instance method Pathname#hash

hash -> Integer[permalink][rdoc][edit]
() → Integer

ハッシュ値を返します。