Method: #diff
- Defined in:
- motion-prime/core_ext/hash.rb
#diff(other) ⇒ Object
1 2 3 4 5 |
# File 'motion-prime/core_ext/hash.rb', line 1 def diff(other) dup. delete_if { |k, v| other[k] == v }. merge!(other.dup.delete_if { |k, v| has_key?(k) }) end |