Exception: SmartEnum::EnumLocked
- Inherits:
-
StandardError
- Object
- StandardError
- SmartEnum::EnumLocked
- 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) ⇒ EnumLocked
constructor
A new instance of EnumLocked.
Constructor Details
#initialize(klass) ⇒ EnumLocked
Returns a new instance of EnumLocked.
164 165 166 167 |
# File 'lib/smart_enum.rb', line 164 def initialize(klass) @type = klass super("#{klass} has been locked and can not be written to") end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
162 163 164 |
# File 'lib/smart_enum.rb', line 162 def type @type end |