Class: FactoryBot::Decorator::NewConstructor

Inherits:
FactoryBot::Decorator show all
Defined in:
lib/factory_bot/decorator/new_constructor.rb

Instance Method Summary collapse

Methods inherited from FactoryBot::Decorator

const_missing, #method_missing, #respond_to_missing?, #send

Constructor Details

#initialize(component, build_class) ⇒ NewConstructor

Returns a new instance of NewConstructor.



4
5
6
7
# File 'lib/factory_bot/decorator/new_constructor.rb', line 4

def initialize(component, build_class)
  super(component)
  @build_class = build_class
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FactoryBot::Decorator