Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
aasm
v0.1.1
AASM
AASMException
Event
EventAlreadyDefinedException
NoSuchEventException
NoSuchStateException
State
StateAlreadyDefinedException
StateMachine
Transition
UnableToChangeState
Built with Crystal 1.9.2
2023-10-08 08:55:02 UTC
struct
AASM::State
AASM::State
Struct
Value
Object
Defined in:
aasm/state.cr
Constructors
.new
(opts = {enter:
nil
, guard:
nil
})
Instance Method Summary
#enter
: -> Nil | Nil
#guard
: -> Bool | Nil
Constructor Detail
def self.
new
(opts = {enter:
nil
, guard:
nil
})
#
[
View source
]
Instance Method Detail
def
enter
: -> Nil | Nil
#
[
View source
]
def
guard
: -> Bool | Nil
#
[
View source
]