class TerminalTable::Table

Defined in:

terminal_table.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(rows : Array(Array(Int32 | String)), enable_separator : Bool = true, header : Array(String) = [] of String, corner_char : String = "+", row_char : String = "-", col_char : String = "|") #

[View source]

Instance Method Detail

def get_lengthes #

[View source]
def row_component(row, is_header) #

[View source]
def row_line_component #

[View source]
def string_duplicate(times) #

[View source]
def to_s #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]