class FactoryBot::Sequence::EnumeratorAdapter
Public Class Methods
new(value)
click to toggle source
# File lib/factory_bot/sequence.rb, line 52 def initialize(value) @first_value = value @value = value end
Public Instance Methods
next()
click to toggle source
# File lib/factory_bot/sequence.rb, line 61 def next @value = @value.next end
peek()
click to toggle source
# File lib/factory_bot/sequence.rb, line 57 def peek @value end
rewind()
click to toggle source
# File lib/factory_bot/sequence.rb, line 65 def rewind @value = @first_value end