class Pandocomatic::WarningPrinter
Printer
for warnings
Public Class Methods
new(warning)
click to toggle source
Create a new WarningPrinter
@param warning [Warning] the warning to print
Calls superclass method
Pandocomatic::Printer::new
# File lib/pandocomatic/printer/warning_printer.rb, line 29 def initialize(warning) template = 'warning.txt' super(template) @warning = warning end
Public Instance Methods
print()
click to toggle source
Print warnings to STDERR rather than STDOUT
# File lib/pandocomatic/printer/warning_printer.rb, line 36 def print Pandocomatic::LOG.warn self warn self end