Class: FactoryGirl::NullFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/factory_girl/null_factory.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNullFactory

Returns a new instance of NullFactory.



5
6
7
# File 'lib/factory_girl/null_factory.rb', line 5

def initialize
  @definition = Definition.new
end

Instance Attribute Details

#definitionObject (readonly)

Returns the value of attribute definition.



3
4
5
# File 'lib/factory_girl/null_factory.rb', line 3

def definition
  @definition
end

Instance Method Details

#class_nameObject



12
# File 'lib/factory_girl/null_factory.rb', line 12

def class_name; end

#compileObject



11
# File 'lib/factory_girl/null_factory.rb', line 11

def compile; end

#default_strategyObject



13
# File 'lib/factory_girl/null_factory.rb', line 13

def default_strategy; :create; end

#evaluator_classObject



14
# File 'lib/factory_girl/null_factory.rb', line 14

def evaluator_class; FactoryGirl::Evaluator; end