Class: EnumX::ValueHash

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

Overview

A hash for enum values. This is a regular Hash, except that it has completely indifferent access also integers are possible as keys.

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



63
64
65
# File 'lib/enum_x.rb', line 63

def [](key)
  super key.to_s
end