Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/enumerable/sugar.rb
Instance Method Summary collapse
Instance Method Details
#includes_hash?(other) ⇒ Boolean
15 16 17 18 19 20 21 22 23 |
# File 'lib/enumerable/sugar.rb', line 15 def includes_hash?(other) included = true other.each do |key, value| included &= self[key] == other[key] end included end |