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_value, #found, #found_in_defaults, #found_in_overrides, #increase_indent, #location_not_found, #not_found, #result, #to_hash, #to_s

Methods inherited from ExplainNode

#branches, #dump_texts, #explain, #inspect, #text, #to_hash, #to_s

Constructor Details

#initialize(parent, key) ⇒ ExplainInvalidKey


177
178
179
180
# File 'lib/puppet/pops/lookup/explainer.rb', line 177

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

Instance Method Details

#dump_on(io, indent, first_indent) ⇒ Object


182
183
184
# File 'lib/puppet/pops/lookup/explainer.rb', line 182

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

#typeObject


186
187
188
# File 'lib/puppet/pops/lookup/explainer.rb', line 186

def type
  :invalid_key
end