Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/dm-is-paginated/hash.rb

Instance Method Summary collapse

Instance Method Details

#reverse_merge(other_hash) ⇒ Object



2
3
4
# File 'lib/dm-is-paginated/hash.rb', line 2

def reverse_merge(other_hash)
  other_hash.merge(self)
end

#reverse_merge!(other_hash) ⇒ Object



5
6
7
# File 'lib/dm-is-paginated/hash.rb', line 5

def reverse_merge!(other_hash)
  replace(reverse_merge(other_hash))
end