class MicroMachine::MicroMachine

Defined in:

MicroMachine.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(initial_state) #

[View source]

Instance Method Detail

def events #

[View source]
def on(key, &block) #

[View source]
def state #

Properties v. Attributes: getter replaces _attr_reader


[View source]
def states #

[View source]
def transitions_for : Hash(Symbol, Hash(Symbol, Symbol)) #

Properties v. Attributes: getter replaces _attr_reader


[View source]
def trigger(event) #

[View source]
def trigger!(event) #

[View source]
def trigger?(event) #

[View source]
def when(event, transitions) #

[View source]