# File lib/active_record/fixtures/file.rb, line 23 def initialize(file) @file = file @rows = nil end
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 lib/active_record/fixtures/file.rb, line 18 def self.open(file) x = new file block_given? ? yield(x) : x end
Generated with the Darkfish Rdoc Generator 2.