Class: GeoRuby::Shp4r::Dbf::Field::FauxTable
- Inherits:
-
Object
- Object
- GeoRuby::Shp4r::Dbf::Field::FauxTable
- Defined in:
- lib/geo_ruby/shp4r/dbf.rb
Overview
Shim class to address backward compatibility issues with DBF >= 2.0.13
Previous signature was (name, type, length, decimal, version, encoding) v2.0.13 and later signature is (table, name, type, length, decimal) with table expected to provide version and encoding
Instance Attribute Summary collapse
-
#encoding ⇒ Object
readonly
Returns the value of attribute encoding.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(version, encoding) ⇒ FauxTable
constructor
A new instance of FauxTable.
Constructor Details
#initialize(version, encoding) ⇒ FauxTable
Returns a new instance of FauxTable.
35 36 37 |
# File 'lib/geo_ruby/shp4r/dbf.rb', line 35 def initialize(version, encoding) @version, @encoding = version, encoding end |
Instance Attribute Details
#encoding ⇒ Object (readonly)
Returns the value of attribute encoding.
33 34 35 |
# File 'lib/geo_ruby/shp4r/dbf.rb', line 33 def encoding @encoding end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
33 34 35 |
# File 'lib/geo_ruby/shp4r/dbf.rb', line 33 def version @version end |