Class: FactoryGirl::Attribute::Static
- Inherits:
-
FactoryGirl::Attribute
- Object
- FactoryGirl::Attribute
- FactoryGirl::Attribute::Static
- Defined in:
- lib/factory_girl/attribute/static.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from FactoryGirl::Attribute
Instance Method Summary collapse
-
#initialize(name, value, ignored) ⇒ Static
constructor
A new instance of Static.
- #to_proc(proxy) ⇒ Object
Methods inherited from FactoryGirl::Attribute
#add_to, #alias_for?, #association?
Constructor Details
#initialize(name, value, ignored) ⇒ Static
Returns a new instance of Static.
4 5 6 7 |
# File 'lib/factory_girl/attribute/static.rb', line 4 def initialize(name, value, ignored) super(name, ignored) @value = value end |
Instance Method Details
#to_proc(proxy) ⇒ Object
9 10 11 12 |
# File 'lib/factory_girl/attribute/static.rb', line 9 def to_proc(proxy) value = @value lambda { value } end |