Method: Osaka::ScriptRunner.print_debug_info_for_additional_output

Defined in:
lib/osaka/scriptrunner.rb


48
49
50
51
52
53
54
55
56
57
# File 'lib/osaka/scriptrunner.rb', line 48

def self.print_debug_info_for_additional_output(output)
  if (!output.empty? && debug_prints?)
    if (@@debug_info_format == :plain_text)
      debug_output = "Output was: #{output}"
    elsif (@@debug_info_format == :short_html)
      debug_output = "Output: <b>#{output}</b><br>"
    end
    puts debug_output
  end
end