Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/SimpliTest/helpers/data_validation.rb
Overview
monkey patching Hash for an intersection method
Instance Method Summary collapse
Instance Method Details
#&(other) ⇒ Object
7 8 9 |
# File 'lib/SimpliTest/helpers/data_validation.rb', line 7 def &(other) reject { |k, v| !(other.include?(k) && other[k] == v) } end |