Class: Proc
- Inherits:
-
Object
- Object
- Proc
- Defined in:
- lib/expendables/proc.rb
Instance Method Summary collapse
- #+@ ⇒ Object
- #compose(o) ⇒ Object (also: #>>)
Instance Method Details
#+@ ⇒ Object
7 8 9 |
# File 'lib/expendables/proc.rb', line 7 def +@ self end |
#compose(o) ⇒ Object Also known as: >>
2 3 4 |
# File 'lib/expendables/proc.rb', line 2 def compose o -> *args { (+o).call((+self).call(*args)) } end |