class ShellTable
- ShellTable
- Reference
- Object
Defined in:
shell-table.crConstructors
- .new(rows, labels : Array(String), label_color : Symbol | Nil = nil)
- .new(rows : Array(ShellTable::Row), labels : Nil | ShellTable::Row = nil, label_color : Symbol | Nil = nil)
- .new
Instance Method Summary
- #add_row(*args, **props)
- #all_rows
- #border : Bool
- #border=(border : Bool)
- #border_color : Symbol | Nil
- #border_color=(border_color : Symbol | Nil)
- #label_color=(color : Symbol)
- #labels : Row | Nil
- #labels=(labels : Row | Nil)
- #labels=(args)
- #padding : Int32
- #padding=(padding : Int32)
- #rows : Array(Row)
- #rows=(rows : Array(Row))
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
Constructor Detail
def self.new(rows : Array(ShellTable::Row), labels : Nil | ShellTable::Row = nil, label_color : Symbol | Nil = nil)
#
Instance Method Detail
def to_s(io : IO)
#
Description copied from class Reference
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>