Exception: SmartEnum::EnumUnlocked

Inherits:
StandardError
  • Object
show all
Defined in:
lib/smart_enum.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#typeObject (readonly)

Returns the value of attribute type.



171
172
173
# File 'lib/smart_enum.rb', line 171

def type
  @type
end