Sha256: 4628ea881d05d95ca9e85d4cacf750ba0d0df34de283170d322e09378960c95b

Contents?: true

Size: 246 Bytes

Versions: 31

Compression:

Stored size: 246 Bytes

Contents

module FactoryBot
  class Decorator
    class NewConstructor < Decorator
      def initialize(component, build_class)
        super(component)
        @build_class = build_class
      end

      delegate :new, to: :@build_class
    end
  end
end

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
factory_bot-5.0.2 lib/factory_bot/decorator/new_constructor.rb
factory_bot-5.0.1 lib/factory_bot/decorator/new_constructor.rb
factory_bot-5.0.0 lib/factory_bot/decorator/new_constructor.rb
factory_bot-5.0.0.rc2 lib/factory_bot/decorator/new_constructor.rb
factory_bot-5.0.0.rc1 lib/factory_bot/decorator/new_constructor.rb
factory_bot-4.11.1 lib/factory_bot/decorator/new_constructor.rb
factory_bot-4.11.0 lib/factory_bot/decorator/new_constructor.rb
factory_bot-4.10.0 lib/factory_bot/decorator/new_constructor.rb
factory_bot-4.8.2 lib/factory_bot/decorator/new_constructor.rb
factory_bot-1.0.1.alpha lib/factory_bot/decorator/new_constructor.rb
factory_bot-1.0.0.alpha lib/factory_bot/decorator/new_constructor.rb