Method: HTTPX::Callbacks#once
- Defined in:
- lib/httpx/callbacks.rb
#once(type, &block) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/httpx/callbacks.rb', line 10 def once(type, &block) on(type) do |*args, &callback| block.call(*args, &callback) :delete end end |