Hashie::Extensions::DeepMerge

Public Instance Methods

deep_merge(other_hash) click to toggle source

Returns a new hash with self and other_hash merged recursively.

# File lib/hashie/extensions/deep_merge.rb, line 5
def deep_merge(other_hash)
  dup.deep_merge!(other_hash)
end
deep_merge!(other_hash) click to toggle source

Returns a new hash with self and other_hash merged recursively. Modifies the receiver in place.

# File lib/hashie/extensions/deep_merge.rb, line 11
def deep_merge!(other_hash)
  _recursive_merge(self, other_hash)
  self
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.