Sha256: 973bf381f2e7e2bf11cf946415284e5f7e39409dd34ce7c6f35bffe423deba85

Contents?: true

Size: 369 Bytes

Versions: 4

Compression:

Stored size: 369 Bytes

Contents

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

4 entries across 4 versions & 2 rubygems

Version Path
brakeman-3.3.1 bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/separator.rb
brakeman-3.3.0 bundle/ruby/2.3.0/gems/terminal-table-1.5.2/lib/terminal-table/separator.rb
terminal-table-1.5.2 lib/terminal-table/separator.rb
terminal-table-1.5.1 lib/terminal-table/separator.rb