Class: FactoryBot::NullFactory Private
- Inherits:
-
Object
- Object
- FactoryBot::NullFactory
- Defined in:
- lib/factory_bot/null_factory.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #definition ⇒ Object readonly private
Instance Method Summary collapse
- #class_name ⇒ Object private
- #compile ⇒ Object private
- #evaluator_class ⇒ Object private
- #hierarchy_class ⇒ Object private
-
#initialize ⇒ NullFactory
constructor
private
A new instance of NullFactory.
Constructor Details
#initialize ⇒ NullFactory
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of NullFactory.
6 7 8 |
# File 'lib/factory_bot/null_factory.rb', line 6 def initialize @definition = Definition.new(:null_factory) end |
Instance Attribute Details
#definition ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
4 5 6 |
# File 'lib/factory_bot/null_factory.rb', line 4 def definition @definition end |
Instance Method Details
#class_name ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 |
# File 'lib/factory_bot/null_factory.rb', line 16 def class_name end |
#compile ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 |
# File 'lib/factory_bot/null_factory.rb', line 13 def compile end |
#evaluator_class ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
19 20 21 |
# File 'lib/factory_bot/null_factory.rb', line 19 def evaluator_class FactoryBot::Evaluator end |
#hierarchy_class ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
23 24 25 |
# File 'lib/factory_bot/null_factory.rb', line 23 def hierarchy_class FactoryBot::DefinitionHierarchy end |