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_texts, #dump_value, #found, #found_in_defaults, #found_in_overrides, #increase_indent, #module_not_found, #not_found, #path_not_found, #result, #text, #to_hash

Methods inherited from ExplainNode

#branches, #to_hash, #to_s

Constructor Details

#initialize(parent, segment) ⇒ ExplainKeySegment

Returns a new instance of ExplainKeySegment.



401
402
403
404
# File 'lib/puppet/pops/lookup/explainer.rb', line 401

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

Instance Method Details

#dump_on(io, indent, first_indent) ⇒ Object



406
407
408
# File 'lib/puppet/pops/lookup/explainer.rb', line 406

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

#typeObject



410
411
412
# File 'lib/puppet/pops/lookup/explainer.rb', line 410

def type
  :segment
end