Class: FactoryGirl::Attribute::Static Private
- Inherits:
-
FactoryGirl::Attribute
- Object
- FactoryGirl::Attribute
- FactoryGirl::Attribute::Static
- Defined in:
- lib/factory_girl/attribute/static.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 FactoryGirl::Attribute
Instance Method Summary (collapse)
-
- (Static) initialize(name, value, ignored)
constructor
private
A new instance of Static.
- - (Object) to_proc private
Methods inherited from FactoryGirl::Attribute
Constructor Details
- (Static) initialize(name, value, ignored)
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.
A new instance of Static
5 6 7 8 |
# File 'lib/factory_girl/attribute/static.rb', line 5 def initialize(name, value, ignored) super(name, ignored) @value = value end |
Instance Method Details
- (Object) to_proc
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 |
# File 'lib/factory_girl/attribute/static.rb', line 10 def to_proc value = @value -> { value } end |