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-5.0.4 bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-5.0.2 bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-5.0.1 bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-5.0.0 bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-4.10.1 bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-5.0.0.pre1 bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
terminal-table-2.0.0 lib/terminal-table/separator.rb
lotrd-0.1.9 vendor/cache/ruby/2.6.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
lotrd-0.1.8 vendor/cache/ruby/2.6.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
lotrd-0.1.6 vendor/cache/ruby/2.6.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
lotrd-0.1.5 vendor/cache/ruby/2.6.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-4.10.0 bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-4.9.1 bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-4.9.0 bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-4.8.2 bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-4.8.1 bundle/ruby/2.4.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-4.8.0 bundle/ruby/2.7.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/brakeman-4.5.1/bundle/ruby/2.5.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb