Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/extensions.rb
Instance Method Summary collapse
Instance Method Details
#include_hash?(hash) ⇒ Boolean
49 50 51 52 53 54 |
# File 'lib/extensions.rb', line 49 def include_hash?(hash) hash.each { |k,v| return false unless self[k] == v } return true end |