Class: DefaultValueForPlugin::NormalValueContainer
- Defined in:
- lib/vex/active_record/plugins/default_value_for/init.rb
Instance Method Summary collapse
- #evaluate(instance) ⇒ Object
-
#initialize(value) ⇒ NormalValueContainer
constructor
A new instance of NormalValueContainer.
Constructor Details
#initialize(value) ⇒ NormalValueContainer
Returns a new instance of NormalValueContainer.
23 24 25 |
# File 'lib/vex/active_record/plugins/default_value_for/init.rb', line 23 def initialize(value) @value = value end |
Instance Method Details
#evaluate(instance) ⇒ Object
27 28 29 |
# File 'lib/vex/active_record/plugins/default_value_for/init.rb', line 27 def evaluate(instance) return @value end |