Method: Fabulator::Core::Structurals::StateMachine#initialize
- Defined in:
- lib/fabulator/core/structurals/state_machine.rb
#initialize ⇒ StateMachine
Returns a new instance of StateMachine.
21 22 23 24 25 |
# File 'lib/fabulator/core/structurals/state_machine.rb', line 21 def initialize @states = { } @context = Fabulator::Expr::Context.new @state = 'start' end |