class

Hwaro::Logger::Table

Inherits Reference / Object

A small aligned table for list-style reports (hwaro tool list). Same builder shape as Receipt: pure data → string, testable without a live terminal. Columns are left-aligned to the widest cell (min: the header), separated by a two-space gutter, on the 2-space margin grid. The header is dim; per-cell roles let a column paint status words without callers touching raw colors. Plain form is the same geometry minus paint, so piped output columnizes identically.

Constructors

new(headers : Array(String))
Source

Instance methods

emit(io : IO = Logger.io) : Nil
Source
empty?
Source
render_plain
Source
render_tty
Source
row(cells : Array(String), roles : Array(Role) | Nil = nil) : self
Source