Exception: Statecraft::AlreadyMounted
- Defined in:
- lib/statecraft/errors.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Instance Method Summary collapse
-
#initialize(model:) ⇒ AlreadyMounted
constructor
A new instance of AlreadyMounted.
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
#model ⇒ Object (readonly)
Returns the value of attribute model.
112 113 114 |
# File 'lib/statecraft/errors.rb', line 112 def model @model end |