lib/dbf/table.rb in dbf-1.0.7 vs lib/dbf/table.rb in dbf-1.0.8

- old
+ new

@@ -11,13 +11,13 @@ attr_reader :memo_block_size # The block size for memo records attr_reader :options # The options hash that was used to initialize the table attr_reader :data # DBF file handle attr_reader :memo # Memo file handle - # Initializes a new DBF::Reader + # Initializes a new DBF::Table # Example: - # reader = DBF::Reader.new 'data.dbf' + # table = DBF::Table.new 'data.dbf' def initialize(filename, options = {}) @data = File.open(filename, 'rb') @memo = open_memo(filename) @options = options reload! @@ -76,19 +76,19 @@ end # Find records using a simple ActiveRecord-like syntax. # # Examples: - # reader = DBF::Reader.new 'mydata.dbf' + # table = DBF::Table.new 'mydata.dbf' # # # Find record number 5 - # reader.find(5) + # table.find(5) # # # Find all records for Keith Morrison - # reader.find :all, :first_name => "Keith", :last_name => "Morrison" + # table.find :all, :first_name => "Keith", :last_name => "Morrison" # # # Find first record - # reader.find :first, :first_name => "Keith" + # table.find :first, :first_name => "Keith" # # The <b>command</b> can be an id, :all, or :first. # <b>options</b> is optional and, if specified, should be a hash where the keys correspond # to column names in the database. The values will be matched exactly with the value # in the database. If you specify more than one key, all values must match in order \ No newline at end of file