2 3 4 5
# File 'lib/sensu_generator/hash.rb', line 2 def deep_merge(second) merger = proc { |key, v1, v2| Hash === v1 && Hash === v2 ? v1.merge(v2, &merger) : v2 } self.merge(second, &merger) end