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