Class: Method
- Inherits:
-
Object
- Object
- Method
- Defined in:
- lib/fancy_to_proc.rb
Instance Method Summary collapse
Instance Method Details
#&(other) ⇒ Object
44 45 46 |
# File 'lib/fancy_to_proc.rb', line 44 def &(other) proc { |*args| other.to_proc.call call(*args) } end |
#|(other) ⇒ Object
40 41 42 |
# File 'lib/fancy_to_proc.rb', line 40 def |(other) curry(2)[other] end |