Class: ActiveRecord::Wrappings::YamlWrapper
- Inherits:
-
AbstractWrapper
- Object
- AbstractWrapper
- ActiveRecord::Wrappings::YamlWrapper
- Defined in:
- lib/active_record/wrappers/yaml_wrapper.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods inherited from AbstractWrapper
#initialize, #load_wrapped_attribute, #save_wrapped_attribute, wrap
Constructor Details
This class inherits a constructor from ActiveRecord::Wrappings::AbstractWrapper
Instance Method Details
#unwrap(attribute) ⇒ Object
7 |
# File 'lib/active_record/wrappers/yaml_wrapper.rb', line 7 def unwrap(attribute) YAML::load(attribute) end |
#wrap(attribute) ⇒ Object
6 |
# File 'lib/active_record/wrappers/yaml_wrapper.rb', line 6 def wrap(attribute) attribute.to_yaml end |