Exception: StateMachine::InvalidParallelTransition
- Inherits:
-
Error
- Object
- StandardError
- Error
- StateMachine::InvalidParallelTransition
- Defined in:
- lib/state_machine/transition.rb
Overview
A set of transition failed to run in parallel
Instance Attribute Summary (collapse)
-
- (Object) events
readonly
The set of events that failed the transition(s).
Attributes inherited from Error
Instance Method Summary (collapse)
-
- (InvalidParallelTransition) initialize(object, events)
constructor
:nodoc:.
Constructor Details
- (InvalidParallelTransition) initialize(object, events)
:nodoc:
51 52 53 54 55 |
# File 'lib/state_machine/transition.rb', line 51 def initialize(object, events) #:nodoc: @events = events super(object, "Cannot run events in parallel: #{events * ', '}") end |
Instance Attribute Details
- (Object) events (readonly)
The set of events that failed the transition(s)
49 50 51 |
# File 'lib/state_machine/transition.rb', line 49 def events @events end |