Class: Pandocomatic::WarningPrinter
- Defined in:
- lib/pandocomatic/printer/warning_printer.rb
Overview
Printer for warnings
Instance Method Summary collapse
-
#initialize(warning) ⇒ WarningPrinter
constructor
Create a new WarningPrinter.
-
#print ⇒ Object
Print warnings to STDERR rather than STDOUT.
Methods inherited from Printer
Constructor Details
#initialize(warning) ⇒ WarningPrinter
Create a new WarningPrinter
29 30 31 32 33 |
# File 'lib/pandocomatic/printer/warning_printer.rb', line 29 def initialize(warning) template = 'warning.txt' super(template) @warning = warning end |
Instance Method Details
#print ⇒ Object
Print warnings to STDERR rather than STDOUT
36 37 38 39 |
# File 'lib/pandocomatic/printer/warning_printer.rb', line 36 def print Pandocomatic::LOG.warn self warn self end |