Class: DefaultValueForPlugin::NormalValueContainer

Inherits:
Object
  • Object
show all
Defined in:
lib/vex/active_record/plugins/default_value_for/init.rb

Instance Method Summary collapse

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