class ReVIEW::Preprocessor
Constants
- INF_INDENT
- KNOWN_DIRECTIVES
- TYPES
Public Class Methods
new(repo, param)
click to toggle source
# File ../../../../../lib/review/preprocessor.rb, line 93 def initialize(repo, param) @repository = repo @config = param end
strip(f)
click to toggle source
# File ../../../../../lib/review/preprocessor.rb, line 54 def Preprocessor.strip(f) buf = '' Strip.new(f).each do |line| buf << line.rstrip << "\n" end buf end
Public Instance Methods
process(inf, outf)
click to toggle source
# File ../../../../../lib/review/preprocessor.rb, line 98 def process(inf, outf) init_ErrorUtils inf @f = outf begin preproc inf rescue Errno::ENOENT => err error err.message end end