Sha256: 7ff1fd03b5838bbe9aec78807e62f8b3624823ff8b7a63909a1c546f27f87217
Contents?: true
Size: 667 Bytes
Versions: 2
Compression:
Stored size: 667 Bytes
Contents
#!/usr/bin/env ruby require "rubygems" require 'collimator' include Collimator Table.header("Collimator") Table.header("Usage Example") Table.header("Can have lots of headers") Table.column('', :width => 18, :padding => 2, :justification => :right) Table.column('numbers', :width => 14, :justification => :center) Table.column('words', :width => 12, :justification => :left, :padding => 2) Table.column('decimal', :width => 12, :justification => :decimal) Table.row(['george', 123, 'holla', 12.5]) Table.row(['jim', 8, 'hi', 76.58]) Table.row(['robert', 10000, 'greetings', 0.2]) Table.footer("gotta love it", :justification => :center) Table.tabulate
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
collimator-0.0.3 | examples/table.rb |
collimator-0.0.2 | examples/table.rb |