Class: Thor::CoreExt::HashWithIndifferentAccess

Inherits:
Hash
  • Object
show all
Defined in:
lib/berkshelf/thor_ext/hash_with_indifferent_access.rb

Instance Method Summary collapse

Instance Method Details

#fetch(key, default = nil) ⇒ Object


8
9
10
# File 'lib/berkshelf/thor_ext/hash_with_indifferent_access.rb', line 8

def fetch(key, default = nil)
  super(convert_key(key), default)
end

#has_key?(key) ⇒ Boolean

Returns:

  • (Boolean)

4
5
6
# File 'lib/berkshelf/thor_ext/hash_with_indifferent_access.rb', line 4

def has_key?(key)
  super(convert_key(key))
end