Class Terminal::Table
In: lib/terminal-table/cell.rb
lib/terminal-table/style.rb
lib/terminal-table/version.rb
lib/terminal-table/table.rb
lib/terminal-table/row.rb
lib/terminal-table/table_helper.rb
lib/terminal-table/separator.rb
Parent: Object

Methods

Classes and Modules

Module Terminal::Table::TableHelper
Class Terminal::Table::Cell
Class Terminal::Table::Row
Class Terminal::Table::Separator
Class Terminal::Table::Style

Constants

VERSION = '1.8.0'

Attributes

headings  [R] 
title  [R] 

Public Class methods

Generates a ASCII table with the given options.

Public Instance methods

<<(array)

Alias for add_row

Check if other is equal to self. other is considered equal if it contains the same headings and rows.

Add a row.

Add a separator.

Align column n to the given alignment of :center, :left, or :right.

Return length of column n.

Set the headings

length_of_column(n)

Alias for column_width

Return total number of columns available.

Render the table.

Return rows without separator rows.

to_s()

Alias for render

[Validate]