Sha256: 3b8d49ad88eb89e27d4346c372defec29ecc1b3590747ef32cd49da23b5c9063
Contents?: true
Size: 412 Bytes
Versions: 1
Compression:
Stored size: 412 Bytes
Contents
module Transcriber class Resource module Serialization class Float def self.serialize(value) Float(value) rescue ArgumentError raise "value not serializable: #{value}" end def self.desserialize(value) Float(value) rescue ArgumentError raise "value not desserializable: #{value}" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
transcriber-0.0.26 | lib/transcriber/resource/serialization/float.rb |