Class: FactoryBot::NullFactory Private

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

Overview

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.

API:

  • private

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNullFactory

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.

API:

  • private



6
7
8
# File 'lib/factory_bot/null_factory.rb', line 6

def initialize
  @definition = Definition.new(:null_factory)
end

Instance Attribute Details

#definitionObject (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.

API:

  • private



4
5
6
# File 'lib/factory_bot/null_factory.rb', line 4

def definition
  @definition
end

Instance Method Details

#class_nameObject

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.

API:

  • private



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

def class_name; end

#compileObject

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.

API:

  • private



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

def compile; end

#evaluator_classObject

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.

API:

  • private



15
# File 'lib/factory_bot/null_factory.rb', line 15

def evaluator_class; FactoryBot::Evaluator; end

#hierarchy_classObject

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.

API:

  • private



16
# File 'lib/factory_bot/null_factory.rb', line 16

def hierarchy_class; FactoryBot::DefinitionHierarchy; end