I'm trying to use terminal-table to display rows from SQL tables (for ex using "pg" gem), where you'll have multiple columns, and don't need a heading on the row.
The result is a hash, so I can do result.keys and then feed it to terminal-table like :headings => row.keys. But for rows :rows => row.values will fail with NoMethodError: undefined method `each' for "4196505504":String.
So, basically, it would need a switch to turn off the expectation of the row to be pairs of keys and values, and just print the whole row array in a line.
I'm trying to use terminal-table to display rows from SQL tables (for ex using "pg" gem), where you'll have multiple columns, and don't need a heading on the row.
The result is a hash, so I can do
result.keys
and then feed it to terminal-table like:headings => row.keys
. But for rows:rows => row.values
will fail withNoMethodError: undefined method `each' for "4196505504":String
.So, basically, it would need a switch to turn off the expectation of the row to be pairs of keys and values, and just print the whole row array in a line.