class ReVIEW::Preprocessor::Strip

Public Class Methods

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

Public Instance Methods

each() { |line| ... } click to toggle source
# File lib/review/preprocessor.rb, line 73
def each
  @f.each do |line|
    yield line unless /\A\#@/ =~ line
  end
end
gets() click to toggle source
# File lib/review/preprocessor.rb, line 65
def gets
  @f.each_line do |line|
    return "\#@\#\n" if /\A\#@/ =~ line
    return line
  end
  nil
end
lineno() click to toggle source
# File lib/review/preprocessor.rb, line 61
def lineno
  @f.lineno
end
path() click to toggle source
# File lib/review/preprocessor.rb, line 57
def path
  @f.path
end