Module: StateMachine

Defined in:
lib/state_machine/macro_methods.rb,
lib/state_machine/path.rb,
lib/state_machine/core.rb,
lib/state_machine/yard.rb,
lib/state_machine/event.rb,
lib/state_machine/state.rb,
lib/state_machine/graph.rb,
lib/state_machine/error.rb,
lib/state_machine/branch.rb,
lib/state_machine/matcher.rb,
lib/state_machine/version.rb,
lib/state_machine/machine.rb,
lib/state_machine/callback.rb,
lib/state_machine/transition.rb,
lib/state_machine/assertions.rb,
lib/state_machine/extensions.rb,
lib/state_machine/eval_helpers.rb,
lib/state_machine/integrations.rb,
lib/state_machine/state_context.rb,
lib/state_machine/yard/handlers.rb,
lib/state_machine/helper_module.rb,
lib/state_machine/matcher_helpers.rb,
lib/state_machine/path_collection.rb,
lib/state_machine/node_collection.rb,
lib/state_machine/event_collection.rb,
lib/state_machine/state_collection.rb,
lib/state_machine/integrations/base.rb,
lib/state_machine/yard/handlers/base.rb,
lib/state_machine/machine_collection.rb,
lib/state_machine/yard/handlers/event.rb,
lib/state_machine/integrations/sequel.rb,
lib/state_machine/yard/handlers/state.rb,
lib/state_machine/integrations/mongoid.rb,
lib/state_machine/yard/handlers/machine.rb,
lib/state_machine/transition_collection.rb,
lib/state_machine/yard/handlers/transition.rb,
lib/state_machine/integrations/data_mapper.rb,
lib/state_machine/integrations/mongo_mapper.rb,
lib/state_machine/integrations/active_model.rb,
lib/state_machine/integrations/active_record.rb,
lib/state_machine/integrations/sequel/versions.rb,
lib/state_machine/integrations/mongoid/versions.rb,
lib/state_machine/integrations/data_mapper/versions.rb,
lib/state_machine/integrations/data_mapper/observer.rb,
lib/state_machine/integrations/mongo_mapper/versions.rb,
lib/state_machine/integrations/active_model/versions.rb,
lib/state_machine/integrations/active_model/observer.rb,
lib/state_machine/integrations/active_record/versions.rb,
lib/state_machine/integrations/active_model/observer_update.rb

Overview

A state machine is a model of behavior composed of states, events, and transitions. This helper adds support for defining this type of functionality on any Ruby class.

Defined Under Namespace

Modules: Assertions, ClassMethods, EvalHelpers, InstanceMethods, Integrations, MacroMethods, MatcherHelpers, YARD Classes: AllMatcher, AttributeTransitionCollection, BlacklistMatcher, Branch, Callback, Error, Event, EventCollection, Graph, HelperModule, IntegrationNotFound, InvalidContext, InvalidEvent, InvalidParallelTransition, InvalidTransition, LoopbackMatcher, Machine, MachineCollection, Matcher, NodeCollection, Path, PathCollection, RailsEngine, State, StateCollection, StateContext, Transition, TransitionCollection, WhitelistMatcher

Constant Summary

VERSION =
'1.2.0'