Class: Civil::Hash
- Inherits:
-
Hash
- Object
- Hash
- Civil::Hash
- Defined in:
- lib/civil/hash.rb
Instance Method Summary collapse
Instance Method Details
#=~(attrs) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/civil/hash.rb', line 3 def =~(attrs) attrs.each do |k, v| keys.include?(k) && self[k] == v or return false end return true end |