module Gemmy::Patches::HashPatch::InstanceMethods::Diff
Public Instance Methods
diff(hash)
click to toggle source
facets returns the key-vals from <self> that are not the same in <hash>
# File lib/gemmy/patches/hash_patch.rb, line 216 def diff(hash) h1 = self.dup.delete_if{ |k,v| hash[k] == v } h2 = hash.dup.delete_if{ |k,v| has_key?(k) } h1.merge(h2) end