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