Ruby 2.3.0 リファレンスマニュアル > ライブラリ一覧 > 組み込みライブラリ > Hashクラス > >=

instance method Hash#>=

self >= other -> bool[permalink][rdoc]

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

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

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