class Tallboy::TableBuilder

Included Modules

Defined in:

tallboy.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(border : Border = :top_bottom, &) #

[View source]
def self.new(border : Border = :none) #

[View source]

Instance Method Detail

def border : Tallboy::Border #

[View source]
def build #

[View source]

[View source]
def columns(header = false, &) #

[View source]
def each(&) #
Description copied from module Enumerable(Tallboy::AutoSpanRow | Tallboy::Row)

Must yield this collection's elements to the block.


[View source]
def footer(arr : Array(ValueType)) #

[View source]
def footer(value : ValueType, align : AlignValue = AlignOption::Auto) #

[View source]
def footer(&) #

[View source]
def header(arr : Array(ValueType)) #

[View source]
def header(value : ValueType, align : AlignValue = AlignOption::Auto) #

[View source]
def header #

[View source]
def header(&) #

[View source]
def render(border_style : BorderStyle, io = IO::Memory.new) #

[View source]
def row(arr : Array(ValueType), border : Border = :none) #

[View source]
def row(value : ValueType, align : AlignValue = AlignOption::Auto, border : Border = :none) #

[View source]
def row(border : Border = :none, &) #

[View source]
def rows(rows : Array(Array(ValueType))) #

[View source]
def to_s(io) #

[View source]