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
107
108
109
110
|
# File 'lib/review/preprocessor.rb', line 107
def initialize(repo, param)
@repository = repo
@config = param
end
|
Class Method Details
68
69
70
71
72
73
74
|
# File 'lib/review/preprocessor.rb', line 68
def Preprocessor.strip(f)
buf = ''
Strip.new(f).each do |line|
buf << line.rstrip << "\n"
end
buf
end
|
Instance Method Details
#process(inf, outf) ⇒ Object
112
113
114
115
116
117
118
119
120
|
# File 'lib/review/preprocessor.rb', line 112
def process(inf, outf)
init_ErrorUtils inf
@f = outf
begin
preproc inf
rescue Errno::ENOENT => err
error err.message
end
end
|