Class | ANSI::Table |
In: |
lib/ansi/table.rb
|
Parent: | Object |
align | [RW] | |
border | [RW] | |
fit | [RW] | Fit to scree width. |
format | [RW] | |
padding | [RW] | |
table | [RW] |
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.