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-6.5.0 lib/factory_bot/decorator/new_constructor.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/factory_bot-6.4.6/lib/factory_bot/decorator/new_constructor.rb
factory_bot-6.4.6 lib/factory_bot/decorator/new_constructor.rb
factory_bot-6.4.5 lib/factory_bot/decorator/new_constructor.rb
factory_bot-6.4.4 lib/factory_bot/decorator/new_constructor.rb
factory_bot-6.4.3 lib/factory_bot/decorator/new_constructor.rb
factory_bot-6.4.2 lib/factory_bot/decorator/new_constructor.rb
factory_bot-6.4.1 lib/factory_bot/decorator/new_constructor.rb
factory_bot-6.4.0 lib/factory_bot/decorator/new_constructor.rb
factory_bot-6.3.0 lib/factory_bot/decorator/new_constructor.rb
factory_bot-6.2.1 lib/factory_bot/decorator/new_constructor.rb
factory_bot-6.2.0 lib/factory_bot/decorator/new_constructor.rb
factory_bot-6.1.0 lib/factory_bot/decorator/new_constructor.rb
factory_bot-6.0.2 lib/factory_bot/decorator/new_constructor.rb
factory_bot-6.0.1 lib/factory_bot/decorator/new_constructor.rb
factory_bot-6.0.0 lib/factory_bot/decorator/new_constructor.rb
factory_bot-5.2.0 lib/factory_bot/decorator/new_constructor.rb
factory_bot-5.1.2 lib/factory_bot/decorator/new_constructor.rb
factory_bot-5.1.1 lib/factory_bot/decorator/new_constructor.rb
factory_bot-5.1.0 lib/factory_bot/decorator/new_constructor.rb