class ShellTable

Defined in:

shell-table.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(rows, labels : Array(String), label_color : Symbol | Nil = nil) #

[View source]
def self.new(rows : Array(ShellTable::Row), labels : Nil | ShellTable::Row = nil, label_color : Symbol | Nil = nil) #

[View source]
def self.new #

[View source]

Instance Method Detail

def add_row(*args, **props) #

[View source]
def all_rows #

[View source]
def border : Bool #

[View source]
def border=(border : Bool) #

[View source]
def border_color : Symbol | Nil #

[View source]
def border_color=(border_color : Symbol | Nil) #

[View source]
def label_color=(color : Symbol) #

[View source]
def labels : Row | Nil #

[View source]
def labels=(labels : Row | Nil) #

[View source]
def labels=(args) #

[View source]
def padding : Int32 #

[View source]
def padding=(padding : Int32) #

[View source]
def rows : Array(Row) #

[View source]
def rows=(rows : Array(Row)) #

[View source]
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>

[View source]