struct TandaCLI::Representers::Table::Column

Defined in:

tanda_cli/representers/table/column.cr

Constant Summary

ELLIPSIS = '…'

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, align : Align = :left, max_width : Int32 | Nil = nil) #

[View source]

Instance Method Detail

def align : Align #

[View source]
def name : String #

[View source]
def render(value : String, width : Int32) : String #

[View source]
def truncate(value : String, width : Int32) : String #

[View source]
def width_for(cells : Array(String)) : Int32 #

[View source]