Class ANSI::Table
In: lib/ansi/table.rb
Parent: Object

Methods

new   to_s  

Attributes

align  [RW] 
border  [RW] 
fit  [RW]  Fit to scree width.
format  [RW] 
padding  [RW] 
table  [RW] 

Public Class methods

The Table class can be used to output nicely formatted tables with division lines and alignment.

table - array of array

options[:align] - align :left or :right options[:padding] - space to add to each cell options[:fit] - fit to screen width options[:border] -

The format block must return ANSI codes to apply to each cell.

Other Implementations:

TODO: Support for table headers and footers.

Public Instance methods

[Validate]