Methods
E
N
O
Included Modules
Class Public methods
new(file)
    # File activerecord/lib/active_record/fixtures/file.rb, line 23
23:       def initialize(file)
24:         @file = file
25:         @rows = nil
26:       end
open(file)

Open a fixture file named file. When called with a block, the block is called with the filehandle and the filehandle is automatically closed when the block finishes.

    # File activerecord/lib/active_record/fixtures/file.rb, line 18
18:       def self.open(file)
19:         x = new file
20:         block_given? ? yield(x) : x
21:       end
Instance Public methods
each(&block)
    # File activerecord/lib/active_record/fixtures/file.rb, line 28
28:       def each(&block)
29:         rows.each(&block)
30:       end