class Hash
def reverse_merge(other_hash)
Experimental RBS support (using type sampling data from the type_fusion
project).
def reverse_merge: (Hash other_hash) -> untyped
This signature was generated using 1 sample from 1 application.
This is particularly useful for initializing an options hash
options = { size: 25, velocity: 10 }.merge(options)
is equivalent to
options = options.reverse_merge(size: 25, velocity: 10)
Merges the caller into +other_hash+. For example,
def reverse_merge(other_hash) other_hash.merge(self) end