Class: FactoryGirl::NullFactory
- Inherits:
-
Object
- Object
- FactoryGirl::NullFactory
- Defined in:
- lib/factory_girl/null_factory.rb
Instance Attribute Summary collapse
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
Instance Method Summary collapse
- #class_name ⇒ Object
- #compile ⇒ Object
- #default_strategy ⇒ Object
- #evaluator_class ⇒ Object
-
#initialize ⇒ NullFactory
constructor
A new instance of NullFactory.
Constructor Details
#initialize ⇒ NullFactory
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
#definition ⇒ Object (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_name ⇒ Object
12 |
# File 'lib/factory_girl/null_factory.rb', line 12 def class_name; end |
#compile ⇒ Object
11 |
# File 'lib/factory_girl/null_factory.rb', line 11 def compile; end |
#default_strategy ⇒ Object
13 |
# File 'lib/factory_girl/null_factory.rb', line 13 def default_strategy; :create; end |
#evaluator_class ⇒ Object
14 |
# File 'lib/factory_girl/null_factory.rb', line 14 def evaluator_class; FactoryGirl::Evaluator; end |