Class: Puppet::Pops::Lookup::ExplainKeySegment

Inherits:
ExplainTreeNode show all
Defined in:
lib/puppet/pops/lookup/explainer.rb

Instance Attribute Summary

Attributes inherited from ExplainTreeNode

#event, #key, #parent, #value

Instance Method Summary collapse

Methods inherited from ExplainTreeNode

#dump_outcome, #dump_value, #found, #found_in_defaults, #found_in_overrides, #increase_indent, #location_not_found, #not_found, #result, #to_hash, #to_s

Methods inherited from ExplainNode

#branches, #dump_texts, #explain, #inspect, #text, #to_hash, #to_s

Constructor Details

#initialize(parent, segment) ⇒ ExplainKeySegment

Returns a new instance of ExplainKeySegment.



424
425
426
427
# File 'lib/puppet/pops/lookup/explainer.rb', line 424

def initialize(parent, segment)
  super(parent)
  @segment = segment
end

Instance Method Details

#dump_on(io, indent, first_indent) ⇒ Object



429
430
431
# File 'lib/puppet/pops/lookup/explainer.rb', line 429

def dump_on(io, indent, first_indent)
  dump_outcome(io, indent)
end

#typeObject



433
434
435
# File 'lib/puppet/pops/lookup/explainer.rb', line 433

def type
  :segment
end