Class: FactoryBot::Decorator::NewConstructor
- Inherits:
-
FactoryBot::Decorator
- Object
- FactoryBot::Decorator
- FactoryBot::Decorator::NewConstructor
- Defined in:
- lib/factory_bot/decorator/new_constructor.rb
Instance Method Summary collapse
-
#initialize(component, build_class) ⇒ NewConstructor
constructor
A new instance of NewConstructor.
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