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

Methods inherited from ExplainNode

#branches, #to_hash, #to_s

Constructor Details

#initialize(parent) ⇒ ExplainScope

Returns a new instance of ExplainScope.



371
372
373
# File 'lib/puppet/pops/lookup/explainer.rb', line 371

def initialize(parent)
  super(parent)
end

Instance Method Details

#dump_on(io, indent, first_indent) ⇒ Object



375
376
377
378
379
# File 'lib/puppet/pops/lookup/explainer.rb', line 375

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

#typeObject



381
382
383
# File 'lib/puppet/pops/lookup/explainer.rb', line 381

def type
  :scope
end