Method: Chutzen::Apply#merge

Defined in:
lib/chutzen/apply.rb

#merge(source, path = []) ⇒ Object



12
13
14
15
16
17
18
19
20
21
# File 'lib/chutzen/apply.rb', line 12

def merge(source, path = [])
  case source
  when Hash
    merge_hash(source, path)
  when Array
    merge_array(source, path)
  else
    merge_scalar(source, path)
  end
end