Module: FSM
- Defined in:
- lib/barebone-fsm.rb
Overview
This module implements a basic finite-state machine (FSM). An FSM consists of a finite number of states, with one of them being the current state of the FSM. Transitions are defined between states, which are triggered on events. For details on FSM, see this wiki page: FSM.
The motivation behind the module was to implement a very basic barebone FSM in Ruby. Features are kept at minimum as well as the code. Only two classes for the FSM are defined as the following:
-
FSM -> the finite state machine class
-
FSMState -> the state class
For further details see the README file.
- Author
-
Md. Imrul Hassan ([email protected])
- Copyright
-
Copyright: Md. Imrul Hassan, 2013