Types

Table

Manipulates tabular data

Attributes

name

Table name to display and for configuration lookup

cols_enum

Enum for columns names

Parent types

Methods

Bool(t:Table)
calculate_num_cols_to_show(t:Table, max_colums_widths:Arr, available_cols:Int)
column(t:Table, k:Str)
column(t:Table, n:Int)
columns(t:Table)
each(t:Table, cb:Fun)
echo(t:Table)
Displays a table. Implemented only for tty output (or output_format=text configuration)
echo(t:Table)
Output (echo) CSV table with cells that contain arrays converted to columns. TODO: data escaping.
init(t:Table, name:Any=null)
Initialize rows to an empty array
init(t:Table, name:Any, rows_hashes:Arr)
Create named table containing provided rows
init(t:Table, rows_hashes:Arr)
len(t:Table)
push(t:Table, row_arr:Arr)
push(t:Table, row_hash:Hash)
register_column(t:Table, k:Any)
width(t:Table)