RubyGems Navigation menu

columnize 0.3.1

Return a list of strings as a set of arranged in columns. For example, for a line width of 4 characters (arranged vertically): ['1', '2,', '3', '4'] => '1 3 2 4 ' or arranged horizontally: ['1', '2,', '3', '4'] => '1 2 3 4 ' Each column is only as wide as necessary. By default, columns are separated by two spaces - one was not legible enough. Set "colsep" to adjust the string separate columns. Set `displaywidth' to set the line width. Normally, consecutive items go down from the top to bottom from the left-most column to the right-most. If +arrange_vertical+ is set false, consecutive items will go across, left to right, top to bottom.

Versions:

  1. 0.9.0 - December 5, 2014 (16.5 KB)
  2. 0.8.9 - April 19, 2014 (16.5 KB)
  3. 0.3.6 - December 17, 2011 (13.5 KB)
  4. 0.3.5 - November 24, 2011 (14 KB)
  5. 0.3.4 - July 5, 2011 (13.5 KB)
Show all versions (12 total)

Authors:

  • R. Bernstein

Owners:

5ac2e22e18cae6289af4f84512439eb700341644ed62ea57e07b217e6009cf22

Total downloads 6,576,188

For this version 274,445

Show all versions (12 total)

Required Ruby Version: None

Licenses:

N/A

Gemfile:
gem 'columnize', '~> 0.3.1' = Copy to clipboard Copied!

install:
gem install columnize -v 0.3.1 = Copy to clipboard Copied!

Links: