Sha256: 0ff5552195271e3f0ed3bf4c89c107ecc3d7215912d11bff9b865ed8dfe6ad81
Contents?: true
Size: 253 Bytes
Versions: 2
Compression:
Stored size: 253 Bytes
Contents
# encoding: utf-8 require 'tty-table' table = TTY::Table.new header: ['header1', 'header2', 'header3'] table << ['a1', 'a2', 'a3'] table << ['b1','b2', 'b3'] table << ['c1', 'c2', 'c3'] puts table.render(:ascii, alignments: [:right, :center, :left])
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tty-table-0.9.0 | examples/alignment.rb |
tty-table-0.8.0 | examples/alignment.rb |