Sha256: 0803eac1ee8bd5687145fd08db5a73a376f2b2ff9c6008451d550ca2f9f1ae2e

Contents?: true

Size: 121 Bytes

Versions: 5

Compression:

Stored size: 121 Bytes

Contents

def diff(other)
  dup.
    delete_if { |k, v| other[k] == v }.
    merge!(other.dup.delete_if { |k, v| has_key?(k) })
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
motion-prime-1.0.7 motion-prime/core_ext/hash.rb
motion-prime-1.0.6 motion-prime/core_ext/hash.rb
motion-prime-1.0.5 motion-prime/core_ext/hash.rb
motion-prime-1.0.4 motion-prime/core_ext/hash.rb
motion-prime-1.0.3 motion-prime/core_ext/hash.rb