Class: HandyHash::Patch Private

Inherits:
Object
  • Object
show all
Defined in:
lib/handy_hash.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.call(orig_data, *change_set) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



72
73
74
# File 'lib/handy_hash.rb', line 72

def call(orig_data, *change_set)
  change_set.inject(orig_data){|data, changes| deep_merge(data, changes) }
end