Method: Puppet::Pops::MergeStrategy.merge

Defined in:
lib/puppet/pops/merge_strategy.rb

.merge(e1, e2, merge) ⇒ Object

Finds a merge strategy that corresponds to the given merge argument and delegates the task of merging the elements of e1 and e2 to it.

Parameters:

  • e1 (Object)

    The first element

  • e2 (Object)

    The second element

Returns:

  • (Object)

    The result of the merge



73
74
75
# File 'lib/puppet/pops/merge_strategy.rb', line 73

def self.merge(e1, e2, merge)
  strategy(merge).merge(e1, e2)
end