class
Tui::Table
- Tui::Table
- Reference
- Object
Defined in:
tui/table.crConstant Summary
-
GAP =
2 -
GUTTER =
3
Constructors
- .fit(columns : Array(Column), rows : Array(Array(String)), term_width : Int32, gutter : Bool = false) : Table
- .new(columns : Array(Column), widths : Array(Int32), gutter : Bool)
Instance Method Summary
- #columns : Array(Column)
- #gutter? : Bool
- #header(glyph : String = "", glyph_color : String | Nil = nil) : String
- #row(cells : Array(String), glyph : String = "", glyph_color : String | Nil = nil, &block : String, Int32 -> String) : String
- #row(cells : Array(String), glyph : String = "", glyph_color : String | Nil = nil) : String
- #total : Int32
- #widths : Array(Int32)
Constructor Detail
def self.fit(columns : Array(Column), rows : Array(Array(String)), term_width : Int32, gutter : Bool = false) : Table
#
Instance Method Detail
def row(cells : Array(String), glyph : String = "", glyph_color : String | Nil = nil, &block : String, Int32 -> String) : String
#