Sha256: b7da1ce89aac6c2a2536887dd1b3c667bce2bc441e19eeea2005b29a997288ed
Contents?: true
Size: 414 Bytes
Versions: 20
Compression:
Stored size: 414 Bytes
Contents
class RestModel module Serialization class Enumerable def self.serialize(value) fail SerializationError, "value '#{value}' is not an enumerable" unless value.kind_of?(::Enumerable) value end def self.desserialize(value) fail SerializationError, "value '#{value}' is not an enumerable" unless value.kind_of?(::Enumerable) value end end end end
Version data entries
20 entries across 20 versions & 1 rubygems