module HTTPX::Options::OptionMethodsCache

  1. lib/httpx/options.rb

Methods

Public Instance

  1. option_hash
  2. option_integer
  3. option_itself

Public Instance methods

option_hash(value)
[show source]
    # File lib/httpx/options.rb
408 def option_hash(value)
409   Hash[value]
410 end
option_integer(value)
[show source]
    # File lib/httpx/options.rb
401 def option_integer(value)
402   value = Integer(value) unless value.respond_to?(:infinite?) && value.infinite?
403   raise TypeError, "`:#{__method__.to_s.delete_prefix("option_")}` must be positive" unless value.positive?
404 
405   value
406 end
option_itself(value)
[show source]
    # File lib/httpx/options.rb
412 def option_itself(value)
413   value
414 end