Class: Evidence::PipeStream

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

Instance Method Summary collapse

Methods included from Stream

#|

Constructor Details

#initialize(upstream, process) ⇒ PipeStream

Returns a new instance of PipeStream.



18
19
20
# File 'lib/evidence/stream.rb', line 18

def initialize(upstream, process)
  @upstream, @process = upstream, process
end

Instance Method Details

#each(&output) ⇒ Object



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

def each(&output)
  @upstream.each(&@process[output])
end

#eos?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/evidence/stream.rb', line 22

def eos?
  @upstream.eos?
end