Class: TableMaker
- Inherits:
-
Object
- Object
- TableMaker
- Defined in:
- lib/table_maker.rb
Instance Method Summary collapse
-
#initialize(db, table_name, layout) ⇒ TableMaker
constructor
A new instance of TableMaker.
Constructor Details
#initialize(db, table_name, layout) ⇒ TableMaker
Returns a new instance of TableMaker.
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/table_maker.rb', line 4 def initialize(db, table_name, layout) @db = db @table_name = table_name.to_sym @column_info = [] @column_names = [] @data = [] @has_primary_key = false parse_layout(layout) create_table import_data end |