Method: Factory#initialize

Defined in:
lib/factory_girl/factory.rb

#initialize(name, options = {}) ⇒ Factory

:nodoc:



65
66
67
68
69
70
# File 'lib/factory_girl/factory.rb', line 65

def initialize (name, options = {}) #:nodoc:
  assert_valid_options(options)
  @factory_name = factory_name_for(name)
  @options      = options      
  @attributes   = []
end