Class: Puppet::Pops::Lookup::ExplainInvalidKey
- Inherits:
-
ExplainTreeNode
- Object
- ExplainNode
- ExplainTreeNode
- Puppet::Pops::Lookup::ExplainInvalidKey
- 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, key) ⇒ ExplainInvalidKey
constructor
A new instance of ExplainInvalidKey.
- #type ⇒ Object
Methods inherited from ExplainTreeNode
#dump_outcome, #dump_value, #found, #found_in_defaults, #found_in_overrides, #increase_indent, #module_not_found, #not_found, #path_not_found, #result, #to_hash
Methods inherited from ExplainNode
Constructor Details
#initialize(parent, key) ⇒ ExplainInvalidKey
Returns a new instance of ExplainInvalidKey.
152 153 154 155 |
# File 'lib/puppet/pops/lookup/explainer.rb', line 152 def initialize(parent, key) super(parent) @key = key end |
Instance Method Details
#dump_on(io, indent, first_indent) ⇒ Object
157 158 159 |
# File 'lib/puppet/pops/lookup/explainer.rb', line 157 def dump_on(io, indent, first_indent) io << first_indent << "Invalid key \"" << @key << "\"\n" end |
#type ⇒ Object
161 162 163 |
# File 'lib/puppet/pops/lookup/explainer.rb', line 161 def type :invalid_key end |