Class: Rubbr::Runner::Ps2Pdf
Instance Attribute Summary
Attributes inherited from Base
#errors, #executable, #input_file, #verboser_warnings, #warnings
Instance Method Summary collapse
-
#initialize(input_file, executable = 'ps2pdf') ⇒ Ps2Pdf
constructor
A new instance of Ps2Pdf.
- #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 = 'ps2pdf') ⇒ Ps2Pdf
Returns a new instance of Ps2Pdf.
4 5 6 |
# File 'lib/rubbr/runner/ps2pdf.rb', line 4 def initialize(input_file, executable='ps2pdf') super end |
Instance Method Details
#run ⇒ Object
8 9 10 11 12 |
# File 'lib/rubbr/runner/ps2pdf.rb', line 8 def run disable_stderr do @warnings = `#@executable #@input_file`.split("\n") end end |