Class: Rubbr::Runner::DviPs
Instance Attribute Summary
Attributes inherited from Base
#errors, #executable, #input_file, #verboser_warnings, #warnings
Instance Method Summary collapse
-
#initialize(input_file, executable = 'dvips') ⇒ DviPs
constructor
A new instance of DviPs.
- #run ⇒ Object
Methods inherited from Base
Methods included from Cli
#color?, #disable_stderr, #disable_stdinn, #disable_stdout, #error, #executable?, #notice, #valid_executable, #warning
Constructor Details
#initialize(input_file, executable = 'dvips') ⇒ DviPs
Returns a new instance of DviPs.
4 5 6 |
# File 'lib/rubbr/runner/dvips.rb', line 4 def initialize(input_file, executable='dvips') super end |
Instance Method Details
#run ⇒ Object
8 9 10 11 12 13 |
# File 'lib/rubbr/runner/dvips.rb', line 8 def run disable_stderr do @warnings = `#@executable -Ppdf #@input_file`.split("\n") end feedback end |