Sha256: 902667e8135cc2a66b214193b8378df3bf6f60c2f4f6d72e796adbbfef227257
Contents?: true
Size: 317 Bytes
Versions: 2
Compression:
Stored size: 317 Bytes
Contents
# frozen_string_literal: true require_relative "../lib/tty-table" table = TTY::Table.new(header: ["Column 1", "Column 2", "Column 3"]) do |t| t << [ "r1 c1", "r1 c2", "r1 c3" ] t << [ "r2 c1", "r2 c2", "r2 c3" ] t << [ "r3 c1", "r3 c2", "r3 c3" ] end table.orientation = :vertical puts table.render(:ascii)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tty-table-0.11.0 | examples/orientation.rb |
tty-table-0.10.0 | examples/orientation.rb |