Module: CurryMethods
- Defined in:
- lib/httpx/extensions.rb
Overview
Backport
Ruby 2.1 and lower implement curry only for Procs.
Why not using Refinements? Because they don’t work for Method (tested with ruby 2.1.9).
Instance Method Summary collapse
- 
  
    
      #curry(*args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Backport for the Method#curry method, which is part of ruby core since 2.2 . 
Instance Method Details
#curry(*args) ⇒ Object
Backport for the Method#curry method, which is part of ruby core since 2.2 .
| 14 15 16 | # File 'lib/httpx/extensions.rb', line 14 def curry(*args) to_proc.curry(*args) end |