module Quartz::Stateful
Direct including types
Defined in:
quartz/state.crConstant Summary
-
STATE_CHECKS =
{state_complete: false}
Instance Method Summary
Macro Summary
Instance Method Detail
Macro Detail
macro state(&block)
#
The #state macro defines a State subclass for the current Model
and expects a block to be passed.
The given block is inserted inside the definition of the State subclass.
See also State#var.
Example
class MyModel < AtomicModel
state do
var x : Int32 = 0
var y : Int32 = 0
end
end