class StateControl(T)

Defined in:

state_control.cr
state_control/router.cr

Constant Summary

VERSION = "0.1.0"

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(initial : T | Nil = nil) #

[View source]

Instance Method Detail

def can?(dest : T, current : T = state) #

[View source]
def final_state? #

[View source]
def go(dest : T, current : T = state) #

[View source]
def go(dest : T, current : T = state, &success_block : Proc(T, T, Nil)) #

[View source]
def possible_routes(current = state) #

[View source]
def state : T #

[View source]
def to_json(json : JSON::Builder) : Nil #

[View source]