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
zuora_connect_ui-0.8.1 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
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
zuora_connect_ui-0.8.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
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/brakeman-4.6.1/bundle/ruby/2.6.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-4.6.1 bundle/ruby/2.6.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-4.6.0 bundle/ruby/2.6.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
zuora_connect_ui-0.7.1 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
zuora_connect_ui-0.7.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
brakeman-4.5.1 bundle/ruby/2.5.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-4.5.0 bundle/ruby/2.5.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-4.4.0 bundle/ruby/2.5.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-4.3.1 bundle/ruby/2.5.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-4.3.0 bundle/ruby/2.5.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-4.2.1 bundle/ruby/2.5.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-4.2.0 bundle/ruby/2.3.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-4.1.1 bundle/ruby/2.3.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-4.1.0 bundle/ruby/2.3.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-4.0.1 bundle/ruby/2.3.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-4.0.1.pre1 bundle/ruby/2.3.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb
brakeman-4.0.0 bundle/ruby/2.3.0/gems/terminal-table-1.8.0/lib/terminal-table/separator.rb