Class: Puppet::Pops::Lookup::ExplainGlobal
- Inherits:
-
ExplainTreeNode
- Object
- ExplainNode
- ExplainTreeNode
- Puppet::Pops::Lookup::ExplainGlobal
- 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, binding_terminus) ⇒ ExplainGlobal
constructor
A new instance of ExplainGlobal.
- #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, binding_terminus) ⇒ ExplainGlobal
Returns a new instance of ExplainGlobal.
314 315 316 317 |
# File 'lib/puppet/pops/lookup/explainer.rb', line 314 def initialize(parent, binding_terminus) super(parent) @binding_terminus = binding_terminus end |
Instance Method Details
#dump_on(io, indent, first_indent) ⇒ Object
319 320 321 322 323 324 |
# File 'lib/puppet/pops/lookup/explainer.rb', line 319 def dump_on(io, indent, first_indent) io << first_indent << 'Data Binding "' << @binding_terminus.to_s << "\"\n" indent = increase_indent(indent) branches.each {|b| b.dump_on(io, indent, indent)} dump_outcome(io, indent) end |
#to_hash ⇒ Object
326 327 328 329 330 |
# File 'lib/puppet/pops/lookup/explainer.rb', line 326 def to_hash hash = super hash[:name] = @binding_terminus hash end |
#type ⇒ Object
332 333 334 |
# File 'lib/puppet/pops/lookup/explainer.rb', line 332 def type :global end |