Sha256: 7bc4f8da16ba52a8d1d0450a358049633bea57023800e83d5e7e14f07ed9e135

Contents?: true

Size: 305 Bytes

Versions: 18

Compression:

Stored size: 305 Bytes

Contents

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

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

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
superstore-1.2.0 lib/superstore/type.rb
superstore-1.1.4 lib/superstore/type.rb
superstore-1.1.3 lib/superstore/type.rb
superstore-1.1.2 lib/superstore/type.rb
superstore-1.1.1 lib/superstore/type.rb
superstore-1.1.0 lib/superstore/type.rb
superstore-1.0.12 lib/superstore/type.rb
superstore-1.0.11 lib/superstore/type.rb
superstore-1.0.10 lib/superstore/type.rb
superstore-1.0.9 lib/superstore/type.rb
superstore-1.0.8 lib/superstore/type.rb
superstore-1.0.7 lib/superstore/type.rb
superstore-1.0.6 lib/superstore/type.rb
superstore-1.0.5 lib/superstore/type.rb
superstore-1.0.4 lib/superstore/type.rb
superstore-1.0.3 lib/superstore/type.rb
superstore-1.0.2 lib/superstore/type.rb
superstore-1.0.0 lib/superstore/type.rb