lib/sixarm_ruby_ramp/hash.rb
def merge_recurse(other_hash)
    merge(other_hash){|key, oldval, newval|
      if oldval.is_a?(Hash) && newval.is_a?(Hash)
        oldval.merge_recurse(newval)
      else
        newval
      end
    }
  end
# Return a new hash containing the contents of other_hash and the
# contents of hsh.
#
# If no block is specified, the value for entries with duplicate
# keys will be that of other_hash; if the values are both hashes,
# then this method recurses.
#
# Otherwise the  value for each duplicate key is determined by calling
# the block with the key, its value in hsh and its value in other_hash.
#
# @example:
#
#   h1 = {a: 'b', c: {d: 'e'}}
#   h2 = {a: 'B', c: {d: 'E'}}
#   h1.merge_recurse(h2)
#   #=> {a: 'B', c: {d: 'E'}}
#
Return a new hash containing the contents of other_hash and the
contents of hsh.

If no block is specified, the value for entries with duplicate
keys will be that of other_hash; if the values are both hashes,
then this method recurses.

Otherwise the  value for each duplicate key is determined by calling
the block with the key, its value in hsh and its value in other_hash.
Return a new hash containing the contents of other_hash and the contents of hsh . If no block is specified the value for entries with duplicate keys will be that of other_hash ; if the values are both hashes then this method recurses . Otherwise the value for each duplicate key is determined by calling the block with the key its value in hsh and its value in other_hash .
def merge_recurse(other_hash)
    merge(other_hash){|key, oldval, newval|
      if oldval.is_a?(Hash) && newval.is_a?(Hash)
        oldval.merge_recurse(newval)
      else
        newval
      end
    }
  end
def merge_recurse ( other_hash ) merge ( other_hash ) { | key , oldval , newval | if oldval . is_a? ( Hash ) && newval . is_a? ( Hash ) oldval . merge_recurse ( newval ) else newval end } end
Return a new hash containing the contents of other_hash and the
contents of hsh.
Return a new hash containing the contents of other_hash and the contents of hsh .
other_hash
example:
None