method

>=

Importance_1
v2_4_6 - Show latest stable - 0 notes - Class: Hash
>=(p1) public

Returns true if other is subset of hash or equals to hash.

h1 = {a:1, b:2}
h2 = {a:1, b:2, c:3}
h1 >= h2   #=> false
h2 >= h1   #=> true
h1 >= h1   #=> true
Show source
Register or log in to add new notes.