Sha256: 4307dc602358b95b915b3a8bff7eb8acace34dbb912cdd047d69b738f866c5da
Contents?: true
Size: 326 Bytes
Versions: 3
Compression:
Stored size: 326 Bytes
Contents
require 'singleton' module GraphQL module Groups class GroupTypeRegistry include Singleton attr_reader :types def initialize @types = {} end def register(type, derived) types[type] = derived end def get(type) types[type] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems