Sha256: 5ce012ef7b313a1217e4aae356d19d59d78c0fcc337c23594f01ed16e1e44cee

Contents?: true

Size: 673 Bytes

Versions: 75

Compression:

Stored size: 673 Bytes

Contents

#!/usr/bin/env ruby

require_relative '../lib/terminal-table'

puts Terminal::Table.new(headings: ['a', 'b', 'c', 'd'], style: { border: :unicode })

puts

tbl = Terminal::Table.new do |t|
  t.style = { border: :unicode }
  t.add_separator
  t.add_separator
  t.add_row ['x','y','z']
  t.add_separator
  t.add_separator
end
puts tbl

puts

puts Terminal::Table.new(headings: [['a', 'b', 'c', 'd'], ['cat','dog','frog','mouse']], style: { border: :unicode })

puts

puts Terminal::Table.new(headings: ['a', 'b', 'c', 'd'])

puts

tbl = Terminal::Table.new do |t|
  t.add_separator
  t.add_separator
  t.add_row ['x','y','z']
  t.add_separator
  t.add_separator
end
puts tbl

Version data entries

75 entries across 75 versions & 3 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/terminal-table-3.0.2/examples/issue118.rb
harbr-2.8.1 vendor/bundle/ruby/3.2.0/gems/terminal-table-3.0.2/examples/issue118.rb
harbr-0.2.10 vendor/bundle/ruby/3.2.0/gems/terminal-table-3.0.2/examples/issue118.rb
harbr-0.2.9 vendor/bundle/ruby/3.2.0/gems/terminal-table-3.0.2/examples/issue118.rb
harbr-0.2.8 vendor/bundle/ruby/3.2.0/gems/terminal-table-3.0.2/examples/issue118.rb
harbr-0.2.7 vendor/bundle/ruby/3.2.0/gems/terminal-table-3.0.2/examples/issue118.rb
harbr-0.2.6 vendor/bundle/ruby/3.2.0/gems/terminal-table-3.0.2/examples/issue118.rb
harbr-0.2.5 vendor/bundle/ruby/3.2.0/gems/terminal-table-3.0.2/examples/issue118.rb
harbr-0.2.4 vendor/bundle/ruby/3.2.0/gems/terminal-table-3.0.2/examples/issue118.rb
harbr-0.2.3 vendor/bundle/ruby/3.2.0/gems/terminal-table-3.0.2/examples/issue118.rb
harbr-0.2.2 vendor/bundle/ruby/3.2.0/gems/terminal-table-3.0.2/examples/issue118.rb
harbr-0.2.1 vendor/bundle/ruby/3.2.0/gems/terminal-table-3.0.2/examples/issue118.rb
harbr-0.2.0 vendor/bundle/ruby/3.2.0/gems/terminal-table-3.0.2/examples/issue118.rb
harbr-0.1.99 vendor/bundle/ruby/3.2.0/gems/terminal-table-3.0.2/examples/issue118.rb
harbr-0.1.98 vendor/bundle/ruby/3.2.0/gems/terminal-table-3.0.2/examples/issue118.rb
harbr-0.1.97 vendor/bundle/ruby/3.2.0/gems/terminal-table-3.0.2/examples/issue118.rb
harbr-0.1.96 vendor/bundle/ruby/3.2.0/gems/terminal-table-3.0.2/examples/issue118.rb
harbr-0.1.95 vendor/bundle/ruby/3.2.0/gems/terminal-table-3.0.2/examples/issue118.rb
harbr-0.1.94 vendor/bundle/ruby/3.2.0/gems/terminal-table-3.0.2/examples/issue118.rb
harbr-0.1.93 vendor/bundle/ruby/3.2.0/gems/terminal-table-3.0.2/examples/issue118.rb