Sha256: ed6acf19672a468a0fd19683d2ef90b1fe4dcade539d0716208683f79d3961c9
Contents?: true
Size: 295 Bytes
Versions: 4
Compression:
Stored size: 295 Bytes
Contents
class RestModel module Serialization class Symbol def self.serialize(value) value.to_s.to_sym rescue raise SerializationError, "value '#{value}' is not a symbol" end def self.desserialize(value) serialize(value) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems