Class: Puppet::Pops::Lookup::ExplainTop
- Inherits:
-
ExplainTreeNode
- Object
- ExplainNode
- ExplainTreeNode
- Puppet::Pops::Lookup::ExplainTop
- 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, type, key) ⇒ ExplainTop
constructor
A new instance of ExplainTop.
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, #type
Methods inherited from ExplainNode
Constructor Details
#initialize(parent, type, key) ⇒ ExplainTop
Returns a new instance of ExplainTop.
150 151 152 153 154 |
# File 'lib/puppet/pops/lookup/explainer.rb', line 150 def initialize(parent, type, key) super(parent) @type = type self.key = key end |
Instance Method Details
#dump_on(io, indent, first_indent) ⇒ Object
156 157 158 159 160 |
# File 'lib/puppet/pops/lookup/explainer.rb', line 156 def dump_on(io, indent, first_indent) io << first_indent << 'Searching for "' << key << "\"\n" indent = increase_indent(indent) branches.each {|b| b.dump_on(io, indent, indent)} end |