Class: Puppet::Pops::Lookup::ExplainInterpolate
Instance Attribute Summary
#event, #key, #parent, #value
Instance Method Summary
collapse
#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
Methods inherited from ExplainNode
#branches, #to_s
Constructor Details
Returns a new instance of ExplainInterpolate.
199
200
201
202
|
# File 'lib/puppet/pops/lookup/explainer.rb', line 199
def initialize(parent, expression)
super(parent)
@expression = expression
end
|
Instance Method Details
#dump_on(io, indent, first_indent) ⇒ Object
204
205
206
207
208
|
# File 'lib/puppet/pops/lookup/explainer.rb', line 204
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
|
210
211
212
213
214
|
# File 'lib/puppet/pops/lookup/explainer.rb', line 210
def to_hash
hash = super
hash[:expression] = @expression
hash
end
|
216
217
218
|
# File 'lib/puppet/pops/lookup/explainer.rb', line 216
def type
:interpolate
end
|