Class: FactoryGirl::Decorator::NewConstructor

Inherits:
FactoryGirl::Decorator show all
Defined in:
lib/factory_girl/decorator/new_constructor.rb

Instance Method Summary collapse

Methods inherited from FactoryGirl::Decorator

const_missing, #method_missing, #send

Constructor Details

#initialize(component, build_class) ⇒ NewConstructor

Returns a new instance of NewConstructor.



4
5
6
7
# File 'lib/factory_girl/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 FactoryGirl::Decorator