class Domo::StateMachine(T)

Defined in:

domo/state_machine.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(initial_state : T) #

[View source]

Instance Method Detail

def add_valid(from_state : T, to_state : T) #

[View source]
def current_state #

[View source]
def initial_state #

[View source]
def next(next_state : T, error = "Invalid State Change: #{@current_state} -> #{next_state}") #

[View source]