Method: Tablecon::Table#initialize
- Defined in:
- lib/tablecon.rb
#initialize(list) ⇒ Table
Params:
list-
a list of instances of the same class
where every field will be treated as a separate column
11 12 13 14 |
# File 'lib/tablecon.rb', line 11 def initialize list lp = ListParser.new list @printer = TablePrinter.new lp.rows end |