Class: Proc
- Inherits:
-
Object
- Object
- Proc
- Defined in:
- lib/funkify.rb
Instance Method Summary collapse
Instance Method Details
#*(other) ⇒ Object
9 10 11 |
# File 'lib/funkify.rb', line 9 def *(other) Funkify.compose(self, other) end |
#|(other) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/funkify.rb', line 13 def |(other) if arity.zero? other.(*self.()) else Funkify.compose(other, self) end end |