Class | Mocha::StateMachine |
In: |
lib/mocha/state_machine.rb
|
Parent: | Object |
current_state | [RW] | @private |
name | [R] | @private |
Put the {StateMachine} into the next_state_name.
@param [String] next_state_name name of new state
Provides a mechanism to change the {StateMachine} into the state specified by state_name at some point in the future.
Or provides a mechanism to determine whether the {StateMachine} is in the state specified by state_name at some point in the future.
@param [String] state_name name of new state @return [State] state which, when activated, will change the {StateMachine} into the state with the specified state_name.
Provides a mechanism to determine whether the {StateMachine} is not in the state specified by state_name at some point in the future. rubocop:disable Naming/PredicateName
Put the {StateMachine} into the state specified by initial_state_name.
@param [String] initial_state_name name of initial state @return [StateMachine] state machine, thereby allowing invocations of other {StateMachine} methods to be chained.