instance method
merge!
Ruby on Rails 3.2.22.5
Since v3.2.22.5 Last seen in v3.2.22.5Signature
merge!(other_hash)
No documentation comment.
Parameters
-
other_hashreq
Source
# File activesupport/lib/active_support/ordered_hash.rb, line 186
def merge!(other_hash)
if block_given?
other_hash.each { |k, v| self[k] = key?(k) ? yield(k, self[k], v) : v }
else
other_hash.each { |k, v| self[k] = v }
end
self
end
Defined in activesupport/lib/active_support/ordered_hash.rb line 186
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::OrderedHash