Class: FactoryBot::Declaration::Dynamic Private
- Inherits:
-
FactoryBot::Declaration
- Object
- FactoryBot::Declaration
- FactoryBot::Declaration::Dynamic
- Defined in:
- lib/factory_bot/declaration/dynamic.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
Instance Method Summary collapse
- #==(other) ⇒ Object private
-
#initialize(name, ignored = false, block = nil) ⇒ Dynamic
constructor
private
A new instance of Dynamic.
Methods inherited from FactoryBot::Declaration
Constructor Details
#initialize(name, ignored = false, block = nil) ⇒ Dynamic
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 Dynamic.
5 6 7 8 |
# File 'lib/factory_bot/declaration/dynamic.rb', line 5 def initialize(name, ignored = false, block = nil) super(name, ignored) @block = block 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/dynamic.rb', line 10 def ==(other) self.class == other.class && name == other.name && ignored == other.ignored && block == other.block end |