Class: ReVIEW::Preprocessor
- Includes:
- ErrorUtils
- Defined in:
- lib/review/preprocessor.rb
Defined Under Namespace
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(repo, param) ⇒ Preprocessor
constructor
A new instance of Preprocessor.
- #process(inf, outf) ⇒ Object
Methods included from ErrorUtils
#error, #filename, #init_errorutils, #lineno, #location, #warn
Constructor Details
#initialize(repo, param) ⇒ Preprocessor
Returns a new instance of Preprocessor.
80 81 82 83 84 |
# File 'lib/review/preprocessor.rb', line 80 def initialize(repo, param) @repository = repo @config = param @logger = ReVIEW.logger end |
Class Method Details
Instance Method Details
#process(inf, outf) ⇒ Object
86 87 88 89 90 91 92 93 94 |
# File 'lib/review/preprocessor.rb', line 86 def process(inf, outf) init_errorutils inf @f = outf begin preproc inf rescue Errno::ENOENT => err error err. end end |