Class: Evidence::FileStream
- Inherits:
-
Object
- Object
- Evidence::FileStream
- Includes:
- Enumerable
- Defined in:
- lib/evidence/stream.rb
Instance Method Summary collapse
- #each(&block) ⇒ Object
- #eos? ⇒ Boolean
-
#initialize(file) ⇒ FileStream
constructor
A new instance of FileStream.
Constructor Details
#initialize(file) ⇒ FileStream
Returns a new instance of FileStream.
21 22 23 |
# File 'lib/evidence/stream.rb', line 21 def initialize(file) @file = file end |
Instance Method Details
#each(&block) ⇒ Object
29 30 31 |
# File 'lib/evidence/stream.rb', line 29 def each(&block) @file.each(&block) end |
#eos? ⇒ Boolean
25 26 27 |
# File 'lib/evidence/stream.rb', line 25 def eos? @file.eof? end |