module I18n::Utils

def deep_merge!(hash, other_hash, &block)

Experimental RBS support (using type sampling data from the type_fusion project).

def deep_merge!: (Hash hash, Hash other_hash, ) -> untyped

This signature was generated using 12 samples from 1 application.

def deep_merge!(hash, other_hash, &block)
  hash.merge!(other_hash) do |key, this_val, other_val|
    if this_val.is_a?(Hash) && other_val.is_a?(Hash)
      deep_merge(this_val, other_val, &block)
    elsif block_given?
      yield key, this_val, other_val
    else
      other_val
    end
  end
end