Sha256: 64b8da9bef93f36b4e8dc76239b7874c3c04d2de4c1f793da20cb1bce5ee4491

Contents?: true

Size: 375 Bytes

Versions: 1

Compression:

Stored size: 375 Bytes

Contents

# encoding: utf-8
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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
galileo-0.2.1 lib/terminal-table/lib/terminal-table/separator.rb