Class: Nydp::StreamReader
- Inherits:
-
Object
- Object
- Nydp::StreamReader
- Defined in:
- lib/nydp/runner.rb
Instance Method Summary collapse
-
#initialize(stream) ⇒ StreamReader
constructor
A new instance of StreamReader.
- #nextline ⇒ Object
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
#nextline ⇒ Object
14 15 16 |
# File 'lib/nydp/runner.rb', line 14 def nextline @stream.readline unless @stream.eof? end |