Sha256: 999bee5f973e3fe552b007eccfeed2e7cdf72418d0830808f8a1a8c09c5c493c
Contents?: true
Size: 451 Bytes
Versions: 83
Compression:
Stored size: 451 Bytes
Contents
# ANSI::Table The ANSI::Table class can be used to output tabular data with nicely formated ASCII cell borders. require 'ansi/table' The constructor takes an 2-dimensional array. data = [ [ 10, 20, 30 ], [ 20, 10, 20 ], [ 50, 40, 20 ] ] table = ANSI::Table.new(data) table.to_s The output will be: +----+----+----+ | 10 | 20 | 30 | | 20 | 10 | 20 | | 50 | 40 | 20 | +----+----+----+
Version data entries
83 entries across 41 versions & 13 rubygems