Sha256: c079f8dd0c0da67a4b7b10807a9dbf1958b9f37853704a6337170d9add4d429f

Contents?: true

Size: 258 Bytes

Versions: 10

Compression:

Stored size: 258 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
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
gotime-cassandra_object-2.4.2 lib/cassandra_object/types/string_type.rb
gotime-cassandra_object-2.4.1 lib/cassandra_object/types/string_type.rb
gotime-cassandra_object-2.4.0 lib/cassandra_object/types/string_type.rb
gotime-cassandra_object-2.3.6 lib/cassandra_object/types/string_type.rb
gotime-cassandra_object-2.3.5 lib/cassandra_object/types/string_type.rb
gotime-cassandra_object-2.3.4 lib/cassandra_object/types/string_type.rb
gotime-cassandra_object-2.3.3 lib/cassandra_object/types/string_type.rb
gotime-cassandra_object-2.3.2 lib/cassandra_object/types/string_type.rb
gotime-cassandra_object-2.3.1 lib/cassandra_object/types/string_type.rb
gotime-cassandra_object-2.3.0 lib/cassandra_object/types/string_type.rb