Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
MVU::Program(M)
Inherits
Reference
<
Object
Constants
CAPACITY = 1024
Constructors
new
(initial_model :
M
, initial_cmd :
Cmd
=
Cmd
.none, middlewares :
Array
(
Middleware
(
M
)) = [] of
Middleware
(
M
), render :
Render
=
Render::EveryMessage
)
Source
Instance methods
dispatch
(msg :
Msg
) :
Nil
Source
dispatch?
(msg :
Msg
) :
Bool
Source
model
Source
run
Source
stop
Source
stopped?
Source