Module | Columnize |
In: |
lib/columnize.rb
lib/columnize.rb |
Author: | Rocky Bernstein (rockyb@rubyforge.net) |
Display a list of strings as a compact set of columns.
Each column is only as wide as necessary. By default, columns are separated by two spaces (one was not legible enough). Adapted from the routine of the same name in cmd.py
Return a string with embedded newlines (\n) arranging list in column-order so that each line is no larger than displaywidth. If list is not an array, the empty string, ’’, is returned. colsep contains the string to use to separate entries.