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.



92
93
94
95
96
# File 'lib/statecraft/errors.rb', line 92

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

#model ⇒ Object (readonly)

Returns the value of attribute model.



90
91
92
# File 'lib/statecraft/errors.rb', line 90

def model
  @model
end