Module: Yogo::Operation::Restricted::Compose
- Includes:
- ExpectedType, Support::Proc::Compose
- Defined in:
- lib/yogo/operation/restricted/compose.rb
Instance Method Summary collapse
-
#compose(g) ⇒ Object
Restricted operations are always expected to accept and return the SAME type of argument.
Instance Method Details
#compose(g) ⇒ Object
Restricted operations are always expected to accept and return the SAME type of argument. Therefore don’t *splat apart the result of the composed operation ‘g’ as is done in Yogo::Support::Proc::Compose
14 15 16 |
# File 'lib/yogo/operation/restricted/compose.rb', line 14 def compose(g) lambda{|*args| self[g[*args]]} end |