Skip to content

enricruiz/taulukko

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Taulukko

Generates easy grepable and cutable tables in ruby.

Installation

gem install taulukko

Usage

To use it:

require 'taulukko'

Each table row is an array

> table = Taulukko.new
> table << ["BCN", "Barcelona"]
> table << ["EAS", "Donostia"]
> table << ["SVQ", "Sevilla"]

> puts table
BCN  Barcelona
EAS  Donostia
SVQ  Sevilla

Add heading

> table = Taulukko.new
> table.headings = ["IATA", "City"]
> table << ["BCN", "Barcelona"]
> table << ["EAS", "Donostia"]
> table << ["SVQ", "Sevilla"]

> puts table
IATA  City
----  ---------
BCN   Barcelona
EAS   Donostia
SVQ   Sevilla

Copyright

Copyright (c) 2012 Enric Ruiz. See LICENSE.txt for further details.

About

Generates easy grepable and cutable tables in ruby

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages