Exception: SmartEnum::EnumUnlocked
- Inherits:
-
StandardError
- Object
- StandardError
- SmartEnum::EnumUnlocked
- Defined in:
- lib/smart_enum.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(klass) ⇒ EnumUnlocked
constructor
A new instance of EnumUnlocked.
Constructor Details
#initialize(klass) ⇒ EnumUnlocked
Returns a new instance of EnumUnlocked.
173 174 175 176 |
# File 'lib/smart_enum.rb', line 173 def initialize(klass) @type = klass super("Cannot use unlocked enum #{klass}.") end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
171 172 173 |
# File 'lib/smart_enum.rb', line 171 def type @type end |