Recursively Merge Hash.
Join the DZone community and get the full member experience.
Join For Freerecursively merge Hash.
class Hash
def recursive_merge(h)
self.merge!(h) {|key, _old, _new| if _old.class == Hash then _old.recursive_merge(_new) else _new end }
end
end
Merge (version control)
Opinions expressed by DZone contributors are their own.
Comments