File: //usr/local/rvm/gems/ruby-2.6.8/doc/activesupport-6.1.4.1/ri/Hash/deep_merge-i.ri
U:RDoc::AnyMethod[iI"deep_merge:ETI"Hash#deep_merge;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"HReturns a new hash with +self+ and +other_hash+ merged recursively.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"+h1 = { a: true, b: { c: [1, 2, 3] } }
;TI",h2 = { a: false, b: { x: [3, 4, 5] } }
;TI"
;TI"Lh1.deep_merge(h2) # => { a: false, b: { c: [1, 2, 3], x: [3, 4, 5] } }
;T:@format0o;
; [I"KLike with Hash#merge in the standard library, a block can be provided ;TI"to merge values:;T@o;; [ I"-h1 = { a: 100, b: 200, c: { c1: 100 } }
;TI"%h2 = { b: 250, c: { c1: 200 } }
;TI"Kh1.deep_merge(h2) { |key, this_val, other_val| this_val + other_val }
;TI",# => { a: 100, b: 450, c: { c1: 300 } };T;
0:
@fileI"3lib/active_support/core_ext/hash/deep_merge.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(other_hash, &block);T@FI" Hash;TcRDoc::NormalClass00