module FactoryBot::Syntax::Methods

def generate(name)

The next value in the sequence. (Object)
Returns:

The name of the sequence that a value should be generated for.
name: (Symbol)
Arguments:

Generates and returns the next value in a sequence.
def generate(name)
  Internal.sequence_by_name(name).next
end

def generate_list(name, count)

The next value in the sequence. (Object)
Returns:

Count of values
count: (Fixnum)
The name of the sequence that a value should be generated for.
name: (Symbol)
Arguments:

Generates and returns the list of values in a sequence.
def generate_list(name, count)
  (1..count).map do
    Internal.sequence_by_name(name).next
  end
end