Present 2 dimensional arrays into a table
gem install cli-table
require 'cli-table'
t = Table.new ["Student", "Math", "Science", "English"]
t.rows = [
["John", 85, 90, 88],
["Sarah", 78, 85, 92],
["David", 91, 88, 85],
["George", 99, 99, 99]
]
t.show
All rows must be of the same size.
- add configuribility
This all came about when I
wanted to print something similar
to sqlite .mode box
in this
project