Class: HttpStub::Extensions::Core::Hash::WithIndifferentAndInsensitiveAccess

Inherits:
Hash
  • Object
show all
Includes:
IndifferentAndInsensitiveAccess
Defined in:
lib/http_stub/extensions/core/hash/with_indifferent_and_insensitive_access.rb

Instance Method Summary collapse

Methods included from IndifferentAndInsensitiveAccess

#[]

Constructor Details

#initialize(hash = {}) ⇒ WithIndifferentAndInsensitiveAccess

Returns a new instance of WithIndifferentAndInsensitiveAccess.



9
10
11
# File 'lib/http_stub/extensions/core/hash/with_indifferent_and_insensitive_access.rb', line 9

def initialize(hash={})
  self.merge!(hash || {})
end