I'm looking for a Ruby library that will task an array of arrays (like the CSV does) and outputs a string that displays the data in an ASCII table like this:
+----------+-------------+
| route_id | route_color |
+----------+-------------+
| 01-1079 | FFFF7C |
| 04-1079 | FFFF7C |
+----------+-------------+
Is such a thing available?
https://github.com/visionmedia/terminal-table (Gem at http://rubygems.org/gems/terminal-table)
This library appears to do exactly what you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With