Class: Vorbis::InsensitiveHash

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

Overview

A simple subclass of Hash which converts keys to uppercase strings.

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object


97
98
99
# File 'lib/vorbis.rb', line 97

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

#[]=(key, value) ⇒ Object


101
102
103
# File 'lib/vorbis.rb', line 101

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