instance method reverse_merge!

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

reverse_merge!(other_hash)

Performs the opposite of merge, with the keys and values from the first hash taking precedence over the second. Modifies the receiver in place.

Parameters

other_hash req
Source
# File activesupport/lib/active_support/core_ext/hash/reverse_merge.rb, line 27
        def reverse_merge!(other_hash)
          replace(reverse_merge(other_hash))
        end

Defined in activesupport/lib/active_support/core_ext/hash/reverse_merge.rb line 27 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::CoreExtensions::Hash::ReverseMerge

Type at least 2 characters to search.

↑↓ navigate · open · esc close