rf-web/vendor/bundle/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
2019-10-21 10:18:17 +02:00

15 lines
350 B
Ruby

module Terminal
class Table
class Separator < Row
def render
arr_x = (0...@table.number_of_columns).to_a.map do |i|
@table.style.border_x * (@table.column_width(i) + @table.cell_padding)
end
border_i = @table.style.border_i
border_i + arr_x.join(border_i) + border_i
end
end
end
end