class Tallboy::Style

Defined in:

tallboy.cr
tallboy/style.cr

Constant Summary

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

Constructors

Instance Method Summary

Constructor Detail

def self.new(charset = 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]