Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/stackmate/intrinsic_functions.rb

Instance Method Summary collapse

Instance Method Details

#downcase_keyObject



2
3
4
5
6
7
# File 'lib/stackmate/intrinsic_functions.rb', line 2

def downcase_key
  keys.each do |k|
    store(k.downcase, Array === (v = delete(k)) ? v.map(&:downcase_key) : v)
  end
  self
end