Sha256: 50ae6352d79ce8048bc9bed86cbc8619e2724c6d20822d55b1eef2f35a62cd7b
Contents?: true
Size: 371 Bytes
Versions: 30
Compression:
Stored size: 371 Bytes
Contents
module CassandraObject module Types class StringType < BaseType def encode(str) raise ArgumentError.new("#{str.inspect} is not a String") unless str.kind_of?(String) str.dup end def wrap(record, name, value) value = value.to_s (value.frozen? ? value.dup : value).force_encoding('UTF-8') end end end end
Version data entries
30 entries across 30 versions & 1 rubygems