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 80
def initialize(repo, param)
  @repository = repo
  @config = param
  @logger = ReVIEW.logger
end
strip(f) click to toggle source
# File ../../../../../lib/review/preprocessor.rb, line 46
def self.strip(f)
  buf = ''
  Strip.new(f).each { |line| buf << line.rstrip << "\n" }
  buf
end

Public Instance Methods

process(inf, outf) click to toggle source
# 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