reverse_merge(other_hash)
Instance Public methods
Like merge
but the other way around: Merges the receiver into
the argument and returns a new hash with indifferent access as result:
1 2 3 | hash = ActiveSupport::HashWithIndifferentAccess. new hash[ 'a' ] = nil hash.reverse_merge(a: 0 , b: 1 ) # => {"a"=>nil, "b"=>1} |
Please login to continue.