tj / terminal-table

Ruby ASCII Table Generator, simple and feature rich.
MIT License
1.53k stars 121 forks source link

[Feature Request] border_left and border_right style #100

Closed simonovich closed 3 years ago

simonovich commented 6 years ago

Could you add the possibility of disabling the left and right borders of the table?

For example:

table = Terminal::Table.new do |t|
  t.headings = ['id', 'name']
  t.rows = [[1, 'One'], [2, 'Two'], [3, 'Three']]
  t.style = { :border_left => false, :border_top => false, :border_bottom => false }
end
# > puts table
#  id | name  |
# ----+-------+
#  1  | One   |
#  2  | Two   |
#  3  | Three |
nanobowers commented 3 years ago

@nateberkopec I think this can be closed - fixed as part of #113