Method: Invokable::Compose#>>
- Defined in:
- lib/invokable/compose.rb
#>>(invokable) ⇒ Proc
Return a proc that is the composition of this invokable and the given invokable. The returned proc takes a variable number of arguments, calls invokable with them then calls this proc with the result.
25 26 27 28 29 |
# File 'lib/invokable/compose.rb', line 25 def >>(invokable) lambda do |*args| Invokable.coerce(invokable).call(call(*args)) end end |