Class: Puppet::Pops::Lookup::ExplainGlobal
Instance Attribute Summary
#event, #key, #parent, #value
Instance Method Summary
collapse
#dump_outcome, #dump_value, #found, #found_in_defaults, #found_in_overrides, #increase_indent, #module_not_found, #not_found, #path_not_found, #result
Methods inherited from ExplainNode
#branches, #to_s
Constructor Details
#initialize(parent, binding_terminus) ⇒ ExplainGlobal
Returns a new instance of ExplainGlobal.
294
295
296
297
|
# File 'lib/puppet/pops/lookup/explainer.rb', line 294
def initialize(parent, binding_terminus)
super(parent)
@binding_terminus = binding_terminus
end
|
Instance Method Details
#dump_on(io, indent, first_indent) ⇒ Object
299
300
301
302
303
304
|
# File 'lib/puppet/pops/lookup/explainer.rb', line 299
def dump_on(io, indent, first_indent)
io << first_indent << 'Data Binding "' << @binding_terminus << "\"\n"
indent = increase_indent(indent)
branches.each {|b| b.dump_on(io, indent, indent)}
dump_outcome(io, indent)
end
|
306
307
308
309
310
|
# File 'lib/puppet/pops/lookup/explainer.rb', line 306
def to_hash
hash = super
hash[:name] = @binding_terminus
hash
end
|
312
313
314
|
# File 'lib/puppet/pops/lookup/explainer.rb', line 312
def type
:global
end
|