Class: Evidence::FileStream

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/evidence/stream.rb

Instance Method Summary collapse

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

Returns:

  • (Boolean)


25
26
27
# File 'lib/evidence/stream.rb', line 25

def eos?
  @file.eof?
end