module Rooibos::Router::ClassMethods

The Router declaration surface.

Fragments grow. One Update handles dozens of cases. Routing logic, keybindings, and guard conditions tangle together.

These class methods decompose that logic into declarative rules. Declare routes, forwards, receives, observes, and otherwises. Call from_router to freeze them into an Update callable.

Use it inside any module that includes Rooibos::Router.