Ruby 3.1 リファレンスマニュアル > ライブラリ一覧 > ostructライブラリ > OpenStructクラス > hash
hash -> Integer
self のハッシュ値を返します。