Method: Method#<<

Defined in:
lib/coroutines.rb

#<<(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