Module: Cerealize::InstanceMethods
- Defined in:
- lib/cerealize.rb
Instance Method Summary collapse
Instance Method Details
#cerealize_decode(property, value) ⇒ Object
70 71 72 73 |
# File 'lib/cerealize.rb', line 70 def cerealize_decode property, value opt = self.class.cerealize_option[property] Cerealize.decode( value, opt[:force_encoding] && opt[:codec] ) end |
#cerealize_encode(property, value) ⇒ Object
75 76 77 78 |
# File 'lib/cerealize.rb', line 75 def cerealize_encode property, value opt = self.class.cerealize_option[property] Cerealize.encode( value, opt[:codec] ) end |