Class: Nydp::StreamReader

Inherits:
Object
  • Object
show all
Defined in:
lib/nydp/runner.rb

Instance Method Summary collapse

Constructor Details

#initialize(stream) ⇒ StreamReader

Returns a new instance of StreamReader.



13
# File 'lib/nydp/runner.rb', line 13

def initialize stream ; @stream = stream ; end

Instance Method Details

#nextlineObject



14
15
16
# File 'lib/nydp/runner.rb', line 14

def nextline
  @stream.readline unless @stream.eof?
end