Class: GeoRuby::Shp4r::Dbf::Field

Inherits:
Column
  • Object
show all
Defined in:
lib/geo_ruby/shp4r/dbf.rb

Overview

Allow field (column) creation with defaults for decimal, version, and encoding

Defined Under Namespace

Classes: FauxTable

Instance Method Summary collapse

Constructor Details

#initialize(name, type, length, decimal = 0, version = 1, enc = nil) ⇒ Field

Returns a new instance of Field.



40
41
42
43
# File 'lib/geo_ruby/shp4r/dbf.rb', line 40

def initialize(name, type, length, decimal = 0, version = 1, enc = nil)
  table = FauxTable.new(version, enc)
  super(table, name, type, length, decimal)
end