Module: HTTPX::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

Instance Method Details

#curry(*args) ⇒ Object

Backport for the Method#curry method, which is part of ruby core since 2.2 .



17
18
19
# File 'lib/httpx/extensions.rb', line 17

def curry(*args)
  to_proc.curry(*args)
end