Sha256: ff7e7ad513da979ada9936815e78e165cb7f4e1c6e0bd20beafa06985810e24f

Contents?: true

Size: 350 Bytes

Versions: 100

Compression:

Stored size: 350 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

100 entries across 86 versions & 6 rubygems

Version Path
brakeman-6.2.2 bundle/ruby/3.1.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-6.2.2.rc1 bundle/ruby/3.3.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-6.2.1 bundle/ruby/3.1.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-6.2.0 bundle/ruby/3.1.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-6.1.2 bundle/ruby/3.3.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-6.1.1 bundle/ruby/3.0.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-6.1.0 bundle/ruby/3.1.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-6.0.1 bundle/ruby/3.1.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-6.0.0 bundle/ruby/3.0.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-5.4.1 bundle/ruby/3.1.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-5.4.0 bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-5.3.1 bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-5.3.0 bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-5.2.3 bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-5.2.2 bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-5.2.1 bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-5.2.0 bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-5.1.2 bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-5.1.1 bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-5.1.0 bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb