Object
# File lib/geo_ruby/shp4r/dbf.rb, line 52 def close @data_file.close end
# File lib/geo_ruby/shp4r/dbf.rb, line 61 def field(field_name) @fields.detect {|f| f.name == field_name.to_s} end
Jump to record
# File lib/geo_ruby/shp4r/dbf.rb, line 80 def record(index) seek_to_record(index) active_record? ? build_record : nil end
An array of all the records contained in the database file
# File lib/geo_ruby/shp4r/dbf.rb, line 66 def records seek_to_record(0) @records ||= Array.new(@record_count) do |i| if active_record? build_record else seek_to_record(i + 1) nil end end end
Generated with the Darkfish Rdoc Generator 2.