Module: Daitai::Compose
- Included in:
- Daitai
- Defined in:
- lib/daitai/compose.rb
Instance Method Summary collapse
Instance Method Details
#compose ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/daitai/compose.rb', line 5 def compose lambda do |*functions| if functions.length > 2 compose_n(functions) else compose_two(functions) end end.curry end |