Class: Web::CaseInsensitiveHash

Inherits:
Hash show all
Defined in:
lib/web/parser.rb

Overview

Purpose

this hash is has case insensitive keys. Might be somewhat incomplete

Instance Method Summary collapse

Methods inherited from Hash

#__index, #compare_includes?

Instance Method Details

#[](key) ⇒ Object

:nodoc:



9
10
11
# File 'lib/web/parser.rb', line 9

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

#[]=(key, value) ⇒ Object



13
14
15
# File 'lib/web/parser.rb', line 13

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

#has_key?(key) ⇒ Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/web/parser.rb', line 17

def has_key? (key)
  super( key.to_s.downcase )
end