Sha256: 74905e769c1092ff076a20d03420c5624fb643a9bd007b5ff2e7eca2abe27f54
Contents?: true
Size: 229 Bytes
Versions: 6
Compression:
Stored size: 229 Bytes
Contents
class Hash # if the keys of input hash exists, don't merge in it def reverse_merge hash dup.reverse_merge! hash end # inplace version of reverse_merge def reverse_merge! hash replace hash.merge(self) end end
Version data entries
6 entries across 6 versions & 2 rubygems