Class: Rfm::CaseInsensitiveHash

Inherits:
Hash show all
Defined in:
lib/rfm/utilities/case_insensitive_hash.rb

Instance Method Summary collapse

Methods inherited from Hash

#_create_accessor, #_merge_object!, #rfm_filter, #rfm_only, #to_cih

Instance Method Details

#[](key) ⇒ Object


6
7
8
# File 'lib/rfm/utilities/case_insensitive_hash.rb', line 6

def [](key)
  super(key.to_s.downcase)
end

#[]=(key, value) ⇒ Object


3
4
5
# File 'lib/rfm/utilities/case_insensitive_hash.rb', line 3

def []=(key, value)
  super(key.to_s.downcase, value)
end