Class: Method
Instance Method Summary collapse
-
#<<(args) ⇒ Object
:call-seq: method << [arg1, arg2, …] -> method.
Methods included from Sink
#<=, #in_connect, #input_map, #input_reduce, #input_reject, #input_select
Instance Method Details
#<<(args) ⇒ Object
:call-seq:
method << [arg1, arg2, ...] -> method
Equivalent to method.call(arg1, arg2, …), but allows chaining:
method(:puts) << 1 << 2 << 3 # print each number to stdout
98 99 100 101 |
# File 'lib/coroutines.rb', line 98 def <<(args) call(*args) self end |