class

ShellTable

Inherits Reference / Object

Constructors

new(rows, labels : Array(String), label_color : Symbol | Nil = nil)
Source
new(rows : Array(ShellTable::Row), labels : Nil | ShellTable::Row = nil, label_color : Symbol | Nil = nil)
Source

Instance methods

add_row(*args, **props)
Source
all_rows
Source
border
Source
border=(border : Bool)
Source
border_color
Source
border_color=(border_color : Symbol | Nil)
Source
label_color=(color : Symbol)
Source
labels
Source
labels=(labels : Row | Nil)
Source
labels=(args)
Source
padding
Source
padding=(padding : Int32)
Source
rows
Source
rows=(rows : Array(Row))
Source
to_s(io : IO)

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>
Source

Nested types