module

Opal::TEA::Model

Core Model interface representing the state, update logic, and view in The Elm Architecture.

Instance methods

init

Returns initial commands to execute upon application startup.

Source
render(buffer : UI::Buffer) : Nil

Optional direct buffer rendering for flicker-free double buffering

Source
update(msg : Msg) : Tuple(Model, Cmd)

Updates the model state based on an incoming message, returning the new model and optional command.

Source
view

Renders the current state as a formatted terminal string.

Source