class Tallboy::TableBuilder

Included Modules

Defined in:

tallboy/table_builder.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) #

[View source]
def footer(value, align : AlignValue = :auto) #

[View source]
def footer(&) #

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

[View source]
def header(value, align : AlignValue = :auto) #

[View source]
def header #

[View source]
def header(&) #

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

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

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

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

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

[View source]
def to_s(io) #

[View source]