Class: Sink::InputWrapper
- Includes:
- Sink
- Defined in:
- lib/coroutines/sink.rb
Direct Known Subclasses
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(target, &block) ⇒ InputWrapper
constructor
A new instance of InputWrapper.
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
#close ⇒ Object
97 98 99 |
# File 'lib/coroutines/sink.rb', line 97 def close @target.close end |