Sha256: 2772af7b942b885551232926f3529a917b1c4786e55b748150de5e42e7bae07a
Contents?: true
Size: 270 Bytes
Versions: 79
Compression:
Stored size: 270 Bytes
Contents
module ActiveSupport #:nodoc: module CoreExtensions #:nodoc: module Hash #:nodoc: module Diff def diff(h2) self.dup.delete_if { |k, v| h2[k] == v }.merge(h2.dup.delete_if { |k, v| self.has_key?(k) }) end end end end end
Version data entries
79 entries across 79 versions & 6 rubygems