Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/hyperion/aux/hash_ext.rb

Instance Method Summary collapse

Instance Method Details

#subhash?(hash) ⇒ Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/hyperion/aux/hash_ext.rb', line 2

def subhash?(hash)
  each_pair.all?{|k, v| hash[k] == v}
end