Class: Rubbr::Runner::Ps2Pdf

Inherits:
Base
  • Object
show all
Defined in:
lib/rubbr/runner/ps2pdf.rb

Instance Attribute Summary

Attributes inherited from Base

#errors, #executable, #input_file, #verboser_warnings, #warnings

Instance Method Summary collapse

Methods inherited from Base

#feedback

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

#runObject



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