Method: Tabulo::Table#horizontal_rule
- Defined in:
- lib/tabulo/table.rb
#horizontal_rule(position = :bottom) ⇒ String
Produce a horizontal dividing line suitable for printing at the top, bottom or middle of the table.
It may be that :top
, :middle
and :bottom
all look the same. Whether
this is the case depends on the characters used for the table border.
448 449 450 451 |
# File 'lib/tabulo/table.rb', line 448 def horizontal_rule(position = :bottom) column_widths = get_columns.map { |column| column.width + column.total_padding } @border_instance.horizontal_rule(column_widths, position) end |