Class: Puppet::Pops::Lookup::ExplainScope

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_texts, #dump_value, #found, #found_in_defaults, #found_in_overrides, #increase_indent, #module_not_found, #not_found, #path_not_found, #result, #text, #to_hash

Methods inherited from ExplainNode

#branches, #to_hash, #to_s

Constructor Details

#initialize(parent) ⇒ ExplainScope

Returns a new instance of ExplainScope.



416
417
418
# File 'lib/puppet/pops/lookup/explainer.rb', line 416

def initialize(parent)
  super(parent)
end

Instance Method Details

#dump_on(io, indent, first_indent) ⇒ Object



420
421
422
423
424
# File 'lib/puppet/pops/lookup/explainer.rb', line 420

def dump_on(io, indent, first_indent)
  io << indent << 'Global Scope' << "\n"
  indent = increase_indent(indent)
  dump_outcome(io, indent)
end

#typeObject



426
427
428
# File 'lib/puppet/pops/lookup/explainer.rb', line 426

def type
  :scope
end