FSM::Service
Class methods
Instance methods
current_state
Sourcematches?(state_id : String)
Check if the state machine is in a specific state.
@param state_id [String] The identifier of the state to check. @return [Bool] True if the state machine is in the specified state, false otherwise.
on_transition
Register a callback to be executed when the state of the machine changes.
@yieldparam state [State] The new state after the change.