class AASM::StateMachine
- AASM::StateMachine
- Reference
- Object
Defined in:
aasm/state_machine.crConstructors
Instance Method Summary
- #current_state_name : Symbol?
- #event(name : Symbol, &)
- #fire_event(event_name : Symbol, raise_exception = false)
- #next_state
- #state(name : Symbol, initial : Bool = false, enter : -> _ | Nil = nil, guard : -> Bool | Nil = nil)
Constructor Detail
Instance Method Detail
def state(name : Symbol, initial : Bool = false, enter : -> _ | Nil = nil, guard : -> Bool | Nil = nil)
#