Module: Cerealize::InstanceMethods

Defined in:
lib/cerealize.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) cerealize_decode(property, value)



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

- (Object) cerealize_encode(property, value)



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