Module: Hashie::Extensions::DeepMerge

### Home Classes Methods

### In Files

- lib/hashie/extensions/deep_merge.rb

### Methods

- #deep_merge
- #deep_merge!

### Class/Module Index

Quicksearch

- Hashie
- Hashie::Clash
- Hashie::Clash::ChainError
- Hashie::Dash
- Hashie::Extensions
- Hashie::Extensions::Coercion
- Hashie::Extensions::Coercion::ClassMethods
- Hashie::Extensions::Coercion::InstanceMethods
- Hashie::Extensions::DeepFetch
- Hashie::Extensions::DeepFetch::UndefinedPathError
- Hashie::Extensions::DeepMerge
- Hashie::Extensions::IgnoreUndeclared
- Hashie::Extensions::IndifferentAccess
- Hashie::Extensions::KeyConversion
- Hashie::Extensions::MergeInitializer
- Hashie::Extensions::MethodAccess
- Hashie::Extensions::MethodQuery
- Hashie::Extensions::MethodReader
- Hashie::Extensions::MethodWriter
- Hashie::Extensions::StringifyKeys
- Hashie::Extensions::SymbolizeKeys
- Hashie::Hash
- Hashie::HashExtensions
- Hashie::Mash
- Hashie::PrettyInspect
- Hashie::Rash
- Hashie::Trash

No matching classes.

# 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.