Class: BitClust::LineCollector

Inherits:
LineFilter show all
Defined in:
lib/bitclust/preprocessor.rb

Overview

Used by tools/stattodo.rb

Class Method Summary collapse

Methods inherited from LineFilter

#each, #gets, #initialize

Methods included from ParseUtils

#parse_error

Constructor Details

This class inherits a constructor from BitClust::LineFilter

Class Method Details

.process(path) ⇒ Object


244
245
246
247
248
# File 'lib/bitclust/preprocessor.rb', line 244

def LineCollector.process(path)
  fopen(path) {|f|
    return wrap(f).to_a
  }
end

.wrap(f) ⇒ Object


250
251
252
# File 'lib/bitclust/preprocessor.rb', line 250

def LineCollector.wrap(f)
  new(LineStream.new(f))
end