Class: Proc
- Inherits:
-
Object
- Object
- Proc
- Defined in:
- lib/fancy_to_proc.rb
Instance Method Summary collapse
Instance Method Details
#&(other) ⇒ Object
29 30 31 |
# File 'lib/fancy_to_proc.rb', line 29 def &(other) proc { |*args| other.to_proc.call call(*args) } end |
#|(other) ⇒ Object
25 26 27 |
# File 'lib/fancy_to_proc.rb', line 25 def |(other) curry(2)[other] end |