class Hash
monkey patching Hash
for an intersection method
Public Instance Methods
&(other)
click to toggle source
# File lib/SimpliTest/helpers/data_validation.rb, line 7 def &(other) reject { |k, v| !(other.include?(k) && other[k] == v) } end