Class: IndeStruct::Parser::HashAnyCase
- Inherits:
-
Hash
- Object
- Hash
- IndeStruct::Parser::HashAnyCase
- Defined in:
- lib/inde_struct/parser/hash_any_case.rb
Instance Method Summary collapse
Instance Method Details
#[](key) ⇒ Object
5 6 7 |
# File 'lib/inde_struct/parser/hash_any_case.rb', line 5 def [](key) key.respond_to?(:upcase) ? super(key.upcase) : super(key) end |
#[]=(key, value) ⇒ Object
9 10 11 |
# File 'lib/inde_struct/parser/hash_any_case.rb', line 9 def []=(key, value) key.respond_to?(:upcase) ? super(key.upcase, value) : super(key, value) end |