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::Transition
AASM::Transition
Struct
Value
Object
Defined in:
aasm/transition.cr
Constructors
.new
(opts)
Instance Method Summary
#from
: Array(Symbol)
#from?
: Array(Symbol) | Nil
#to
: Symbol
#to?
: Symbol | Nil
Constructor Detail
def self.
new
(opts)
#
[
View source
]
Instance Method Detail
def
from
: Array(Symbol)
#
[
View source
]
def
from?
: Array(Symbol) | Nil
#
[
View source
]
def
to
: Symbol
#
[
View source
]
def
to?
: Symbol | Nil
#
[
View source
]