class Method
Public Instance Methods
method << [arg1, arg2, ...] → method
click to toggle source
Equivalent to method.call(arg1, arg2, …), but allows chaining:
method(:puts) << 1 << 2 << 3 # print each number to stdout
# File lib/coroutines.rb, line 96 def <<(args) call(*args) self end