Class: DBF::Database::Table
Constant Summary
Constants inherited from Table
Table::DBF_HEADER_SIZE, Table::FOXPRO_VERSIONS, Table::VERSIONS
Instance Attribute Summary collapse
-
#long_names ⇒ Object
Returns the value of attribute long_names.
Attributes inherited from Table
Instance Method Summary collapse
-
#build_columns ⇒ Object
nodoc.
Methods inherited from Table
#close, #closed?, #column_names, #columns, #each, #filename, #find, #has_memo_file?, #initialize, #record, #record_count, #to_csv, #version, #version_description
Methods included from Schema
#activerecord_schema, #json_schema, #schema, #sequel_schema
Constructor Details
This class inherits a constructor from DBF::Table
Instance Attribute Details
#long_names ⇒ Object
Returns the value of attribute long_names.
112 113 114 |
# File 'lib/dbf/database/foxpro.rb', line 112 def long_names @long_names end |
Instance Method Details
#build_columns ⇒ Object
nodoc
114 115 116 117 118 119 120 121 122 123 |
# File 'lib/dbf/database/foxpro.rb', line 114 def build_columns # nodoc columns = super # modify the column definitions to use the long names as the # columnname property is readonly, recreate the column definitions columns.map do |column| long_name = long_names[columns.index(column)] Column.new(self, long_name, column.type, column.length, column.decimal) end end |