Class: Rubbr::Runner::BibTeX
Instance Attribute Summary
Attributes inherited from Base
#errors, #executable, #input_file, #verboser_warnings, #warnings
Instance Method Summary collapse
-
#initialize(input_file, executable = 'bibtex') ⇒ BibTeX
constructor
A new instance of BibTeX.
- #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 = 'bibtex') ⇒ BibTeX
Returns a new instance of BibTeX.
4 5 6 |
# File 'lib/rubbr/runner/bibtex.rb', line 4 def initialize(input_file, executable='bibtex') super end |
Instance Method Details
#run ⇒ Object
8 9 10 11 12 |
# File 'lib/rubbr/runner/bibtex.rb', line 8 def run = /^I (found no|couldn't open)/ @warnings = `#@executable #@input_file`.grep() feedback end |