Sha256: bdf0b780c8c8d6d6f18951f7fd4751c3271664d91d7e322b9bea88eee08e1c62

Contents?: true

Size: 473 Bytes

Versions: 2

Compression:

Stored size: 473 Bytes

Contents

module FactoryBot
  # @api private
  module Internal
    class << self
      delegate :inline_sequences, to: :configuration

      def configuration
        @configuration ||= Configuration.new
      end

      def reset_configuration
        @configuration = nil
      end

      def register_inline_sequence(sequence)
        inline_sequences.push(sequence)
      end

      def rewind_inline_sequences
        inline_sequences.each(&:rewind)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
factory_bot-5.0.2 lib/factory_bot/internal.rb
factory_bot-5.0.1 lib/factory_bot/internal.rb