Class: HashClod

Inherits:
Hash
  • Object
show all
Defined in:
lib/wasserstand/hash_clod.rb

Overview

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



3
4
5
# File 'lib/wasserstand/hash_clod.rb', line 3

def [](key)
  key.respond_to?(:upcase) ? super(UnicodeUtils.upcase(key)) : super(key)
end

#[]=(key, value) ⇒ Object



7
8
9
# File 'lib/wasserstand/hash_clod.rb', line 7

def []=(key, value)
  key.respond_to?(:upcase) ? super(UnicodeUtils.upcase(key), value) : super(key, value)
end