Class: ReVIEW::Preprocessor
Defined Under Namespace
Classes: Directive, Strip
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from ErrorUtils
#error, #filename, #init_errorutils, #lineno, #location, #warn
Constructor Details
#initialize(repo, param) ⇒ 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
46
47
48
49
50
|
# File 'lib/review/preprocessor.rb', line 46
def self.strip(f)
buf = ''
Strip.new(f).each { |line| buf << line.rstrip << "\n" }
buf
end
|
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.message
end
end
|