Class: DBF::Database::Table
Constant Summary
Constants inherited from Table
Table::DBASE2_HEADER_SIZE, Table::DBASE3_HEADER_SIZE, Table::DBASE7_HEADER_SIZE, Table::FOXPRO_VERSIONS, Table::VERSIONS
Constants included from Schema
Schema::FORMATS, Schema::OTHER_DATA_TYPES
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, #encode_string, #filename, #find, #has_memo_file?, #header_encoding, #initialize, #record, #to_csv, #version_description
Methods included from Schema
#activerecord_schema, #activerecord_schema_definition, #json_schema, #number_data_type, #schema, #schema_data_type, #schema_name, #sequel_schema, #sequel_schema_definition, #string_data_format
Constructor Details
This class inherits a constructor from DBF::Table
Instance Attribute Details
#long_names ⇒ Object
Returns the value of attribute long_names.
111 112 113 |
# File 'lib/dbf/database/foxpro.rb', line 111 def long_names @long_names end |
Instance Method Details
#build_columns ⇒ Object
:nodoc:
113 114 115 116 117 118 119 120 121 122 |
# File 'lib/dbf/database/foxpro.rb', line 113 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 |