class HTTPX::Resolver::Options

  1. lib/httpx/resolver/options.rb
Superclass: Object

Methods

Public Class

  1. new

Public Instance

  1. method_missing
  2. respond_to_missing?
  3. to_h

Public Class methods

new (options = {})
[show source]
  # File lib/httpx/resolver/options.rb
5 def initialize(options = {})
6   @options = options
7 end

Public Instance methods

method_missing (m, *args, &block)
[show source]
   # File lib/httpx/resolver/options.rb
 9 def method_missing(m, *args, &block)
10   if @options.key?(m)
11     @options[m]
12   else
13     super
14   end
15 end
respond_to_missing? (m)
[show source]
   # File lib/httpx/resolver/options.rb
17 def respond_to_missing?(m)
18   @options.key?(m) || super
19 end
to_h ()
[show source]
   # File lib/httpx/resolver/options.rb
21 def to_h
22   @options
23 end