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
11
12
13
14
# File 'lib/berkshelf/thor_ext/hash_with_indifferent_access.rb', line 8

def fetch(key, default = nil)
  if default
    super(convert_key(key), default)
  else
    super(convert_key(key))
  end
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