Sha256: e85af31d2965d7bd5b193624a8ef11c1d89992accc07b4826925152a6c6cb7e2

Contents?: true

Size: 308 Bytes

Versions: 13

Compression:

Stored size: 308 Bytes

Contents

module Superstore
  class Type
    cattr_accessor :attribute_types
    self.attribute_types = {}.with_indifferent_access

    class << self
      def register(name, type)
        attribute_types[name] = type
      end

      def get_type_class(name)
        attribute_types[name]
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
superstore-2.4.4 lib/superstore/type.rb
superstore-2.4.3 lib/superstore/type.rb
superstore-2.4.2 lib/superstore/type.rb
superstore-2.4.1 lib/superstore/type.rb
superstore-2.4.0 lib/superstore/type.rb
superstore-2.3.0 lib/superstore/type.rb
superstore-2.2.0 lib/superstore/type.rb
superstore-2.1.3 lib/superstore/type.rb
superstore-2.1.2 lib/superstore/type.rb
superstore-2.1.1 lib/superstore/type.rb
superstore-2.1.0 lib/superstore/type.rb
superstore-2.0.1 lib/superstore/type.rb
superstore-2.0.0 lib/superstore/type.rb