class Tablo::Column
- Tablo::Column
- Reference
- Object
Defined in:
column.crConstructors
Instance Method Summary
-
#body_cell_value(source)
Get a cell value from source, which is Array(CellType).
-
#body_subcells(source)
Returns an array of string, representing the (possibly multilines) body cell formatted and aligned contents
-
#formatted_cell_content(source)
Format the cell using the formatter proc
- #formatter : Bool | Char | Float32 | Float64 | Int16 | Int32 | Int64 | Int8 | String | Symbol | UInt16 | UInt32 | UInt64 | UInt8 -> String
- #formatter=(formatter : Bool | Char | Float32 | Float64 | Int16 | Int32 | Int64 | Int8 | String | Symbol | UInt16 | UInt32 | UInt64 | UInt8 -> String)
- #header : String
-
#header_subcells
Returns an array of string, representing the (possibly multilines) header formatted and aligned contents
- #width : Int32
- #width=(width : Int32)
Constructor Detail
def self.new(header : String, width : Int32, align_header : Justify, align_body : Justify, formatter : CellType -> String, styler : CellType -> String, extractor : Array(CellType) -> CellType)
#
Instance Method Detail
def body_subcells(source)
#
Returns an array of string, representing the (possibly multilines) body cell formatted and aligned contents
def formatter : Bool | Char | Float32 | Float64 | Int16 | Int32 | Int64 | Int8 | String | Symbol | UInt16 | UInt32 | UInt64 | UInt8 -> String
#
def formatter=(formatter : Bool | Char | Float32 | Float64 | Int16 | Int32 | Int64 | Int8 | String | Symbol | UInt16 | UInt32 | UInt64 | UInt8 -> String)
#
def header_subcells
#
Returns an array of string, representing the (possibly multilines) header formatted and aligned contents