Module: Golden::Setting::Value
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#value ⇒ Object
57 58 59 60 |
# File 'lib/golden/setting/value.rb', line 57 def value return if self[:value].nil? YAML::load self[:value] end |
#value=(new_value) ⇒ Object
62 63 64 |
# File 'lib/golden/setting/value.rb', line 62 def value= new_value self[:value] = new_value.to_yaml end |