class Hash
Public Instance Methods
deep_merge(hash)
click to toggle source
# File lib/bart_api/core_ext/hash.rb, line 2 def deep_merge hash self.merge hash do |k, a, b| if a.respond_to? :merge and b.respond_to? :merge a.merge b else b end end end