Parent

Methods

Files

Factory::Sequence

Sequences are defined using Factory.sequence. Sequence values are generated using next.

Public Instance Methods

next() click to toggle source

Returns the next value for this sequence

# File lib/factory_girl/sequence.rb, line 16
def next
  @value += 1
  @proc.call(@value)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.