Class: StrictEnum
- Inherits:
-
Hash
- Object
- Hash
- StrictEnum
- Defined in:
- lib/simpler_state_machine/enum.rb
Defined Under Namespace
Modules: Exceptions
Instance Method Summary collapse
Instance Method Details
#[](k) ⇒ Object
25 26 27 |
# File 'lib/simpler_state_machine/enum.rb', line 25 def [](k) super || raise(Exceptions::MemberNotFound, "index/memeber '#{k}' not found in enum") end |