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/fixture_set/file.rb, line 14
def self.open(file)
x = new file
block_given? ? yield(x) : x
end