Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
Sonicri
master
NCurses
Sonicri
A
Albums
Audio
Categories
Category
Display
Progress
Downloader
Key
Keys
Music
Node
OpmlDataset
Page
Podcast
Radio
RSS
S
State
Terminal
Time
UI
User
UserAction
UserState
Built with Crystal 1.9.2
2023-10-08 08:48:07 UTC
class
Sonicri::State
Sonicri::State
Reference
Object
Defined in:
sonicri/state.cr
Constructors
.new
(state_table : Array(NamedTuple(st: S, res: A, to: S)))
Instance Method Summary
#action
(act : A)
#state
Constructor Detail
def self.
new
(state_table : Array(NamedTuple(st:
S
, res:
A
, to:
S
)))
#
[
View source
]
Instance Method Detail
def
action
(act :
A
)
#
[
View source
]
def
state
#
[
View source
]