class Tallboy::Style

Defined in:

tallboy/style.cr
tallboy/style/charset.cr

Constant Summary

PRESET = {:ascii => {border_top: {"+", "-", "+", "+"}, row: {"|", " ", "|", "|"}, separator: {"+", "-", "+", "+"}, border_bottom: {"+", "-", "+", "+"}}, :unicode => {border_top: {"┌", "─", "┬", "┐"}, row: {"│", " ", "│", "│"}, separator: {"│", "─", "┴", "│"}, border_bottom: {"└", "─", "┴", "┘"}}}

Constructors

Instance Method Summary

Constructor Detail

def self.new(charset = PRESET[:ascii], padding_size = 1, row_separator : Bool = false) #

[View source]

Instance Method Detail

def charset : Tallboy::Style::Charset #

[View source]
def left_padding_size : Int32 #

[View source]
def padding_size(left_size, right_size) #

[View source]
def padding_size #

[View source]
def padding_size=(size : Int32) #

[View source]
def right_padding_size : Int32 #

[View source]
def row_separator : Bool #

[View source]
def row_separator=(row_separator : Bool) #

[View source]