Class: Sink::InputWrapper

Inherits:
Object show all
Includes:
Sink
Defined in:
lib/coroutines/sink.rb

Instance Method Summary collapse

Methods included from Sink

#<=, #input_map, #input_reduce, #input_reject, #input_select

Constructor Details

#initialize(target, &block) ⇒ InputWrapper

Returns a new instance of InputWrapper.



94
95
96
# File 'lib/coroutines/sink.rb', line 94

def initialize(target, &block)
	@target = target; @block = block
end

Instance Method Details

#closeObject



97
98
99
# File 'lib/coroutines/sink.rb', line 97

def close
	@target.close
end