class AASM::StateMachine

Defined in:

aasm/state_machine.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def current_state_name : Symbol? #

[View source]
def event(name : Symbol, &) #

[View source]
def fire_event(event_name : Symbol, raise_exception = false) #

[View source]
def next_state #

[View source]
def state(name : Symbol, initial : Bool = false, enter : -> _ | Nil = nil, guard : -> Bool | Nil = nil) #

[View source]