Skip to content

No Borders? #143

@mvastola

Description

@mvastola

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions