Parent

Methods

Included Modules

Files

Class/Module Index [+]

Quicksearch

ActiveRecord::Fixtures::File

Public Class Methods

new(file) click to toggle source
# File lib/active_record/fixtures/file.rb, line 23
def initialize(file)
  @file = file
  @rows = nil
end
open(file) click to toggle source

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

Public Instance Methods

each(&block) click to toggle source
# File lib/active_record/fixtures/file.rb, line 28
def each(&block)
  rows.each(&block)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.