class ReVIEW::Preprocessor::Strip

Public Class Methods

new(f) click to toggle source
# File ../../../../../lib/review/preprocessor.rb, line 63
def initialize(f)
  @f = f
end

Public Instance Methods

each() { |line| ... } click to toggle source
# File ../../../../../lib/review/preprocessor.rb, line 86
def each
  @f.each do |line|
    yield line unless /\A\#@/ =~ line
  end
end
gets() click to toggle source
# File ../../../../../lib/review/preprocessor.rb, line 75
def gets
  while line = @f.gets
    if /\A\#@/ =~ line
      return "\#@\#\n"
    else
      return line
    end
  end
  nil
end
lineno() click to toggle source
# File ../../../../../lib/review/preprocessor.rb, line 71
def lineno
  @f.lineno
end
path() click to toggle source
# File ../../../../../lib/review/preprocessor.rb, line 67
def path
  @f.path
end