Sha256: 61965170e8962c5150d2329d7788088df5681980c396f8a94a3b7c35b09fbcf7

Contents?: true

Size: 269 Bytes

Versions: 10

Compression:

Stored size: 269 Bytes

Contents

require 'lineinput'

module ReVIEW
  class LineInput < LineInput
    def skip_comment_lines
      n = 0
      while line = gets
        unless line.strip =~ /\A\#@/
          ungets line
          return n
        end
        n += 1
      end
      n
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
review-3.2.0 lib/review/lineinput.rb
review-3.1.0 lib/review/lineinput.rb
review-3.0.0 lib/review/lineinput.rb
review-3.0.0.rc1 lib/review/lineinput.rb
review-3.0.0.preview4 lib/review/lineinput.rb
review-3.0.0.preview3 lib/review/lineinput.rb
review-3.0.0.preview2 lib/review/lineinput.rb
review-3.0.0.preview1 lib/review/lineinput.rb
review-2.5.0 lib/review/lineinput.rb
review-2.4.0 lib/review/lineinput.rb