このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ

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

instance method Hash#>=

self >= other -> boolRuby 2.3.0 から[permalink][rdoc][edit]

other が self のサブセットか同じである場合に真を返します。

[PARAM] other:
自身と比較したい Hash オブジェクトを指定します。
h1 = {a:1, b:2}
h2 = {a:1, b:2, c:3}
p h1 >= h2 # => false
p h2 >= h1 # => true
p h1 >= h1 # => true

[SEE_ALSO] Hash#<=, Hash#<, Hash#>