Class | StateMachine::MachineCollection |
In: |
lib/state_machine/machine_collection.rb
|
Parent: | Hash |
Represents a collection of state machines for a class
Runs one or more events in parallel on the given object. See StateMachine::InstanceMethods#fire_events for more information.
Initializes the state of each machine in the given object. This can allow states to be initialized in two groups: static and dynamic. For example:
machines.initialize_states(object) do # After static state initialization, before dynamic state initialization end
If no block is provided, then all states will still be initialized.
Valid configuration options:
Builds the collection of transitions for all event attributes defined on the given object. This will only include events whose machine actions match the one specified.
These should only be fired as a result of the action being run.