class Puppet::Pops::Lookup::DebugExplainer
Attributes
wrapped_explainer[R]
Public Class Methods
new(wrapped_explainer)
click to toggle source
# File lib/puppet/pops/lookup/explainer.rb 571 def initialize(wrapped_explainer) 572 @wrapped_explainer = wrapped_explainer 573 if wrapped_explainer.nil? 574 @current = self 575 @explain_options = false 576 @only_explain_options = false 577 else 578 @current = wrapped_explainer 579 @explain_options = wrapped_explainer.explain_options? 580 @only_explain_options = wrapped_explainer.only_explain_options? 581 end 582 end
Public Instance Methods
dump_on(io, indent, first_indent)
click to toggle source
Calls superclass method
Puppet::Pops::Lookup::Explainer#dump_on
# File lib/puppet/pops/lookup/explainer.rb 584 def dump_on(io, indent, first_indent) 585 @current.equal?(self) ? super : @current.dump_on(io, indent, first_indent) 586 end
emit_debug_info(preamble)
click to toggle source
# File lib/puppet/pops/lookup/explainer.rb 588 def emit_debug_info(preamble) 589 io = String.new 590 io << preamble << "\n" 591 dump_on(io, ' ', ' ') 592 Puppet.debug(io.chomp!) 593 end