ext/hash.rb
# Merge the two nested hashes, if the key is missing,
# we replace it and deeply mark fixme
Merge the two nested hashes, if the key is missing,
we replace it and deeply mark fixme
Merge the two nested hashes if the key is missing we replace it and deeply mark fixme
def deep_merge_fixme!(other_hash)
    other_hash.each_pair do |other_key, other_value|
      self_value = self[other_key]
      self[other_key] = if self_value.is_a?(Hash) && other_value.is_a?(Hash)
        self_value.deep_merge_fixme!(other_value)
      elsif self_value.nil? || self_value.marked_fixme?
        other_value.mark_fixme!
      else
        self_value
      end
    end
    deep_delete_unused!(other_hash)
  end
def deep_merge_fixme! ( other_hash ) other_hash . each_pair do | other_key , other_value | self_value = self [ other_key ] self [ other_key ] = if self_value . is_a? ( Hash ) && other_value . is_a? ( Hash ) self_value . deep_merge_fixme! ( other_value ) elsif self_value . nil? || self_value . marked_fixme? other_value . mark_fixme! else self_value end end deep_delete_unused! ( other_hash ) end
Merge the two nested hashes, if the key is missing,
we replace it and deeply mark fixme
Merge the two nested hashes if the key is missing we replace it and deeply mark fixme
other_hash
<not_specific>