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.
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 |