Machinery.__using__
You're seeing just the macro
__using__
, go back to Machinery module for more information.
Main macro function that will be executed upon the load of the module using it.
It basically stores the states and transitions.
It expects a Keyword
as argument with two keys states
and transitions
.
states
: A List ofMachinery.Transition.state/0
representing each state.transitions
: A Map for each state and it allowed next state(s).
P.S. The first state declared will be considered the initial state