Parent

Class/Module Index [+]

Quicksearch

Hash

Public Instance Methods

deep_merge(other) click to toggle source
# File lib/github_api/core_ext/deep_merge.rb, line 2
def deep_merge(other)
  dup.deep_merge!(other)
end
deep_merge!(other) click to toggle source
# File lib/github_api/core_ext/deep_merge.rb, line 6
def deep_merge!(other)
  other.each_pair do |key, val|
    tval = self[key]
    self[key] = tval.is_a?(Hash) && val.is_a?(Hash) ? tval.deep_merge(val) : val
  end
  self
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.