class Pandocomatic::ErrorPrinter
Printer
for Errors in non-quiet mode
Public Class Methods
new(error)
click to toggle source
Create a new ErrorPrinter
Calls superclass method
# File lib/pandocomatic/printer/error_printer.rb, line 27 def initialize(error) template = if error.respond_to? :template error.template else 'error.txt' end super(template) @error = error end
Public Instance Methods
print()
click to toggle source
Print an Error to STDERR rather than STDOUT
# File lib/pandocomatic/printer/error_printer.rb, line 38 def print Pandocomatic::LOG.error self warn self end