class

StateControl(T)

Inherits Reference / Object

Constants

VERSION = "0.1.0"

Constructors

new(pull : JSON::PullParser)
Source
new(initial : T | Nil = nil)
Source

Instance methods

can?(dest : T, current : T = state)
Source
final_state?
Source
go(dest : T, current : T = state)
Source
go(dest : T, current : T = state, &success_block : Proc(T, T, Nil))
Source
possible_routes(current = state)
Source
state
Source
to_json(json : JSON::Builder) : Nil
Source

Nested types