Method: StateMachines::Machine#states
- Defined in:
- lib/state_machines/machine.rb
#states ⇒ Object (readonly)
A list of all of the states known to this state machine. This will pull states from the following sources:
-
Initial state
-
State behaviors
-
Event transitions (:to, :from, and :except_from options)
-
Transition callbacks (:to, :from, :except_to, and :except_from options)
-
Unreferenced states (using
other_stateshelper)
These are sorted, by default, in the order in which they were referenced.
461 462 463 |
# File 'lib/state_machines/machine.rb', line 461 def states @states end |