Module: DeepMerge::DeepMergeHash

Included in:
Hash
Defined in:
lib/deep_merge/deep_merge.rb

Overview

Implements a deep merge with default options

Instance Method Summary collapse

Instance Method Details

#deep_merge!(source, options = {}) ⇒ Object

deep_merge! will merge and overwrite any unmergeables in destination hash



10
11
12
13
# File 'lib/deep_merge/deep_merge.rb', line 10

def deep_merge!(source, options = {})
  default_opts = { preserve_unmergeables: false }
  DeepMerge.deep_merge!(source, self, default_opts.merge(options))
end