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 570 def initialize(wrapped_explainer) 571 @wrapped_explainer = wrapped_explainer 572 if wrapped_explainer.nil? 573 @current = self 574 @explain_options = false 575 @only_explain_options = false 576 else 577 @current = wrapped_explainer 578 @explain_options = wrapped_explainer.explain_options? 579 @only_explain_options = wrapped_explainer.only_explain_options? 580 end 581 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 583 def dump_on(io, indent, first_indent) 584 @current.equal?(self) ? super : @current.dump_on(io, indent, first_indent) 585 end
emit_debug_info(preamble)
click to toggle source
# File lib/puppet/pops/lookup/explainer.rb 587 def emit_debug_info(preamble) 588 io = '' 589 io << preamble << "\n" 590 dump_on(io, ' ', ' ') 591 Puppet.debug(io.chomp!) 592 end