Sha256: 2b161b2185d9ef82fdd2a3fda1656c1fc8f32e5987a0b0c3fb9948e1d0f0dddd
Contents?: true
Size: 425 Bytes
Versions: 20
Compression:
Stored size: 425 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
20 entries across 20 versions & 5 rubygems