class

Tablo::Column

Inherits Reference < Object

Constructors

new(header : String, width : Int32, align_header : Justify, align_body : Justify, formatter : CellType -> String, styler : CellType -> String, extractor : Array(CellType) -> CellType)
Source

Instance methods

body_cell_value(source)

Get a cell value from source, which is Array(CellType).

Source
body_subcells(source)

Returns an array of string, representing the (possibly multilines) body cell formatted and aligned contents

Source
formatted_cell_content(source)

Format the cell using the formatter proc

Source
formatter
Source
formatter=(formatter : Bool | Char | Float32 | Float64 | Int16 | Int32 | Int64 | Int8 | String | Symbol | UInt16 | UInt32 | UInt64 | UInt8 -> String)
Source
header
Source
header_subcells

Returns an array of string, representing the (possibly multilines) header formatted and aligned contents

Source
width
Source
width=(width : Int32)
Source