Class: Puppet::Pops::Lookup::ExplainInvalidKey

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, key) ⇒ ExplainInvalidKey

Returns a new instance of ExplainInvalidKey.



164
165
166
167
# File 'lib/puppet/pops/lookup/explainer.rb', line 164

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

Instance Method Details

#dump_on(io, indent, first_indent) ⇒ Object



169
170
171
# File 'lib/puppet/pops/lookup/explainer.rb', line 169

def dump_on(io, indent, first_indent)
  io << first_indent << "Invalid key \"" << @key << "\"\n"
end

#typeObject



173
174
175
# File 'lib/puppet/pops/lookup/explainer.rb', line 173

def type
  :invalid_key
end