Class: StateGate::Engine

Inherits:
Object
  • Object
show all
Includes:
Configurator, Errator, Fixer, Scoper, Sequencer, Stator, Transitioner
Defined in:
lib/state_gate/engine.rb,
lib/state_gate/engine/fixer.rb,
lib/state_gate/engine/scoper.rb,
lib/state_gate/engine/stator.rb,
lib/state_gate/engine/errator.rb,
lib/state_gate/engine/sequencer.rb,
lib/state_gate/engine/configurator.rb,
lib/state_gate/engine/transitioner.rb

Overview

Description

Contains a list of the state-gate defined states, allowed transitions and configuration options.

The engine is queried by all helper methods to validate states and allowed transitions.

Defined Under Namespace

Modules: Configurator, Errator, Fixer, Scoper, Sequencer, Stator, Transitioner

Method Summary

Methods included from Fixer

#prefix, #state_prefix, #state_suffix, #suffix

Methods included from Stator

#assert_valid_state!, #default, #default_state, #human_state_for, #human_states, #raw_states, #state, #states, #states_for_select

Methods included from Scoper

#generate_scope_names, #include_scopes?, #no_scopes, #scope_name_for_state

Methods included from Sequencer

#add_next_sequential_state, #add_previous_sequential_state, #generate_sequences, #loop_sequence, #make_sequential, #sequential?

Methods included from Transitioner

#assert_valid_transition!, #transitionless?, #transitions, #transitions_for_state