struct FSM::Transition
- FSM::Transition
- Struct
- Value
- Object
Overview
Represents a transition from one state to another triggered by an event.
@property event [String] The event that triggers the transition. @property target [String] The target state after the transition. @property callbacks [Callable(String, Context)?] Optional callback to be executed during the transition.
Defined in:
fsm/transition.crInstance Method Summary
-
#event : String
The event that triggers the transition.
- #guard(&block : String, Context -> ) : self
- #on(&block : String, Context -> ) : self
-
#target : String
The target state after the transition.