Class: Puppet::Pops::Lookup::ExplainInterpolate
- Inherits:
-
ExplainTreeNode
- Object
- ExplainNode
- ExplainTreeNode
- Puppet::Pops::Lookup::ExplainInterpolate
- 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, expression) ⇒ ExplainInterpolate
constructor
A new instance of ExplainInterpolate.
- #to_hash ⇒ Object
- #type ⇒ Object
Methods inherited from ExplainTreeNode
#dump_outcome, #dump_value, #found, #found_in_defaults, #found_in_overrides, #increase_indent, #location_not_found, #not_found, #result, #to_s
Methods inherited from ExplainNode
#branches, #dump_texts, #explain, #inspect, #text, #to_s
Constructor Details
#initialize(parent, expression) ⇒ ExplainInterpolate
Returns a new instance of ExplainInterpolate.
240 241 242 243 |
# File 'lib/puppet/pops/lookup/explainer.rb', line 240 def initialize(parent, expression) super(parent) @expression = expression end |
Instance Method Details
#dump_on(io, indent, first_indent) ⇒ Object
245 246 247 248 249 |
# File 'lib/puppet/pops/lookup/explainer.rb', line 245 def dump_on(io, indent, first_indent) io << first_indent << 'Interpolation on "' << @expression << "\"\n" indent = increase_indent(indent) branches.each {|b| b.dump_on(io, indent, indent)} end |
#to_hash ⇒ Object
251 252 253 254 255 |
# File 'lib/puppet/pops/lookup/explainer.rb', line 251 def to_hash hash = super hash[:expression] = @expression hash end |
#type ⇒ Object
257 258 259 |
# File 'lib/puppet/pops/lookup/explainer.rb', line 257 def type :interpolate end |