Sha256: eb16e05aa82484107762c435edc5205cc9af1048778b8aa4cb022684f002dd3f
Contents?: true
Size: 218 Bytes
Versions: 1
Compression:
Stored size: 218 Bytes
Contents
class Hash def reverse_merge(other_hash) other_hash.merge(self) end def reverse_merge!(other_hash) merge!( other_hash ){|key,left,right| left } end alias_method :reverse_update, :reverse_merge! end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
happy_support-1.0.0 | lib/happy_support/core_ext/hash/reverse_merge.rb |