Module: FactoryBot::Internal Private
- Defined in:
- lib/factory_bot/internal.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .configuration ⇒ Object private
- .register_inline_sequence(sequence) ⇒ Object private
- .reset_configuration ⇒ Object private
- .rewind_inline_sequences ⇒ Object private
Class Method Details
.configuration ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 |
# File 'lib/factory_bot/internal.rb', line 7 def configuration @configuration ||= Configuration.new end |
.register_inline_sequence(sequence) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 |
# File 'lib/factory_bot/internal.rb', line 15 def register_inline_sequence(sequence) inline_sequences.push(sequence) end |
.reset_configuration ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'lib/factory_bot/internal.rb', line 11 def reset_configuration @configuration = nil end |
.rewind_inline_sequences ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
19 20 21 |
# File 'lib/factory_bot/internal.rb', line 19 def rewind_inline_sequences inline_sequences.each(&:rewind) end |