Flowdock
method

diff

Importance_0
v1.1.6 - Show latest stable - 0 notes - Class: ActiveSupport::CoreExtensions::Hash::Diff
diff(h2) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/core_ext/hash/diff.rb, line 5
        def diff(h2)
          self.dup.delete_if { |k, v| h2[k] == v }.merge(h2.dup.delete_if { |k, v| self.has_key?(k) })
        end
Register or log in to add new notes.