Exception: Statecraft::AlreadyMounted

Inherits:
Error
  • Object
show all
Defined in:
lib/statecraft/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model:) ⇒ AlreadyMounted

Returns a new instance of AlreadyMounted.



114
115
116
117
118
# File 'lib/statecraft/errors.rb', line 114

def initialize(model:)
  @model = model
  super("#{model.name} already carries a state machine; inheritance shares the base " \
        "machine, and per-subclass machines are out of v0")
end

Instance Attribute Details

#modelObject (readonly)

Returns the value of attribute model.



112
113
114
# File 'lib/statecraft/errors.rb', line 112

def model
  @model
end