Class: FactoryBot::Declaration::Implicit Private

Inherits:
FactoryBot::Declaration show all
Defined in:
lib/factory_bot/declaration/implicit.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

Attributes inherited from FactoryBot::Declaration

#name

Instance Method Summary collapse

Methods inherited from FactoryBot::Declaration

#to_attributes

Constructor Details

#initialize(name, factory = nil, ignored = false) ⇒ Implicit

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 Implicit.



5
6
7
8
# File 'lib/factory_bot/declaration/implicit.rb', line 5

def initialize(name, factory = nil, ignored = false)
  super(name, ignored)
  @factory = factory
end

Instance Method Details

#==(other) ⇒ 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.



10
11
12
13
14
15
# File 'lib/factory_bot/declaration/implicit.rb', line 10

def ==(other)
  self.class == other.class &&
    name == other.name &&
    factory == other.factory &&
    ignored == other.ignored
end