module

Tui::ViewRegistry

Class methods

clear

Clear all registrations (for testing)

Source
create(tool_name : String, id : String | Nil = nil) : View

Create a View for the given tool

Source
register(tool_name : String, &block : -> View) : Nil

Register a factory for a tool name

Source
register(tool_name : String, factory : ViewFactory) : Nil

Register with explicit factory proc

Source
register_defaults

Register default views for common tools

Source
registered?(tool_name : String) : Bool

Check if a tool has a registered factory

Source
registered_tools

List registered tool names

Source
set_default

Set default factory (used when tool not registered)

Source

Nested types