Sha256: ba13aee60b92155f5a11aad7b161224b8a9d6ac07e02d91517cc5e116aa98322
Contents?: true
Size: 282 Bytes
Versions: 1
Compression:
Stored size: 282 Bytes
Contents
module CassandraObject module Types class StringType def encode(str) raise ArgumentError.new("#{self} requires a String") unless str.kind_of?(String) str.dup end def decode(str) str.force_encoding('UTF-8') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gotime-cassandra_object-2.5.0 | lib/cassandra_object/types/string_type.rb |