Class: Puppet::Pops::Lookup::ExplainSubLookup
- Inherits:
-
ExplainTreeNode
- Object
- ExplainNode
- ExplainTreeNode
- Puppet::Pops::Lookup::ExplainSubLookup
- Defined in:
- lib/puppet/pops/lookup/explainer.rb
Instance Attribute Summary
Attributes inherited from ExplainTreeNode
Instance Method Summary collapse
- #dump_on(io, indent, first_indent) ⇒ Object
-
#initialize(parent, sub_key) ⇒ ExplainSubLookup
constructor
A new instance of ExplainSubLookup.
- #type ⇒ Object
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
Constructor Details
#initialize(parent, sub_key) ⇒ ExplainSubLookup
Returns a new instance of ExplainSubLookup.
383 384 385 386 |
# File 'lib/puppet/pops/lookup/explainer.rb', line 383 def initialize(parent, sub_key) super(parent) @sub_key = sub_key end |
Instance Method Details
#dump_on(io, indent, first_indent) ⇒ Object
388 389 390 391 392 393 |
# File 'lib/puppet/pops/lookup/explainer.rb', line 388 def dump_on(io, indent, first_indent) io << indent << 'Sub key: "' << @sub_key.join('.') << "\"\n" indent = increase_indent(indent) branches.each {|b| b.dump_on(io, indent, indent)} dump_outcome(io, indent) end |
#type ⇒ Object
395 396 397 |
# File 'lib/puppet/pops/lookup/explainer.rb', line 395 def type :sub_key end |