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_value, #found, #found_in_defaults, #found_in_overrides, #increase_indent, #location_not_found, #not_found, #result, #to_hash, #to_s, #type
Methods inherited from ExplainNode
#branches, #dump_texts, #explain, #inspect, #text, #to_hash, #to_s
Constructor Details
#initialize(parent, type, key) ⇒ ExplainTop
Returns a new instance of ExplainTop.
163 164 165 166 167 |
# File 'lib/puppet/pops/lookup/explainer.rb', line 163 def initialize(parent, type, key) super(parent) @type = type self.key = key.to_s end |
Instance Method Details
#dump_on(io, indent, first_indent) ⇒ Object
169 170 171 172 173 |
# File 'lib/puppet/pops/lookup/explainer.rb', line 169 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 |