Thanks for this great gem.
Full disclosure: I'm not sure if this is a feature request, a documentation request, or me just being blind (in case of the latter, apologies for the stupid question), but is there any simple way to completely disable borders/separators entirely? I have to think there is because this is such a popular gem, but I can't find how..
I know there's style: { all_separators: false }, but I haven't figured out anything similar for borders. Setting style: { border: ____ } to nil, false, none or 0 doesn't seem to work for me.
The only ways I can figure out to do it are:
style: { border_left: false, border_right: false, border_top: false, border_bottom: false }
table.style.tap(&:remove_verticals).tap(&:remove_horizontals)
- Subclassing
Terminal::Table::Border
This hash entry makes me suspect the solution is assigning nil to some option, but I can't get that to work either.
Am I missing something?
If so, can I ask what it is and request it be documented? (I'm happy to submit a PR doing so).
If not, would you accept a PR to add such an option? (Feedback welcome on how you'd like users to select the option.)
Thanks so much
PS: Possibly related: If I call #remove_verticals, is there any way to omit the blank lines that get outputted before/after the table?
Thanks for this great gem.
Full disclosure: I'm not sure if this is a feature request, a documentation request, or me just being blind (in case of the latter, apologies for the stupid question), but is there any simple way to completely disable borders/separators entirely? I have to think there is because this is such a popular gem, but I can't find how..
I know there's
style: { all_separators: false }, but I haven't figured out anything similar for borders. Settingstyle: { border: ____ }tonil,false,noneor0doesn't seem to work for me.The only ways I can figure out to do it are:
style: { border_left: false, border_right: false, border_top: false, border_bottom: false }table.style.tap(&:remove_verticals).tap(&:remove_horizontals)Terminal::Table::BorderThis hash entry makes me suspect the solution is assigning
nilto some option, but I can't get that to work either.Am I missing something?
If so, can I ask what it is and request it be documented? (I'm happy to submit a PR doing so).
If not, would you accept a PR to add such an option? (Feedback welcome on how you'd like users to select the option.)
Thanks so much
PS: Possibly related: If I call
#remove_verticals, is there any way to omit the blank lines that get outputted before/after the table?