Sha256: 157a17c61aeb27748f890b39ad9b22dc02fd040686d4f1f28a0b1ad987311b86
Contents?: true
Size: 431 Bytes
Versions: 11
Compression:
Stored size: 431 Bytes
Contents
module CassandraObject class Type class TypeMapping < Struct.new(:expected_type, :coder) end cattr_accessor :attribute_types self.attribute_types = {}.with_indifferent_access class << self def register(name, expected_type, coder) attribute_types[name] = TypeMapping.new(expected_type, coder.new) end def get_mapping(name) attribute_types[name] end end end end
Version data entries
11 entries across 11 versions & 1 rubygems