Class: FactoryGirl::Declaration::Dynamic
- Inherits:
-
FactoryGirl::Declaration
- Object
- FactoryGirl::Declaration
- FactoryGirl::Declaration::Dynamic
- Defined in:
- lib/factory_girl/declaration/dynamic.rb
Instance Attribute Summary
Attributes inherited from FactoryGirl::Declaration
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name, ignored = false, block = nil) ⇒ Dynamic
constructor
A new instance of Dynamic.
Methods inherited from FactoryGirl::Declaration
Constructor Details
#initialize(name, ignored = false, block = nil) ⇒ Dynamic
Returns a new instance of Dynamic.
4 5 6 7 |
# File 'lib/factory_girl/declaration/dynamic.rb', line 4 def initialize(name, ignored = false, block = nil) super(name, ignored) @block = block end |
Instance Method Details
#==(other) ⇒ Object
9 10 11 12 13 |
# File 'lib/factory_girl/declaration/dynamic.rb', line 9 def ==(other) name == other.name && ignored == other.ignored && block == other.block end |