Methods
E
N
O
Included Modules
Constants
RESCUE_ERRORS = [ ArgumentError ]
 
Class Public methods
new(file)
# File activerecord/lib/active_record/fixtures/file.rb, line 23
def initialize(file)
  @file = file
  @rows = nil
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
def self.open(file)
  x = new file
  block_given? ? yield(x) : x
end
Instance Public methods
each(&block)
# File activerecord/lib/active_record/fixtures/file.rb, line 28
def each(&block)
  rows.each(&block)
end