Method: Puppet::Pops::Lookup::ExplainMerge#to_hash

Defined in:
lib/puppet/pops/lookup/explainer.rb

#to_hashObject

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.



290
291
292
293
294
295
296
297
# File 'lib/puppet/pops/lookup/explainer.rb', line 290

def to_hash
  return branches[0].to_hash if branches.size == 1
  hash = super
  hash[:merge] = @merge.class.key
  options = options_wo_strategy
  hash[:options] = options unless options.nil?
  hash
end