class GraphQL::Groups::GroupTypeRegistry

Attributes

types[R]

Public Class Methods

new() click to toggle source
# File lib/graphql/groups/group_type_registry.rb, line 12
def initialize
  @types = {}
end

Public Instance Methods

clear() click to toggle source
# File lib/graphql/groups/group_type_registry.rb, line 16
def clear
  @types = {}
end
get(type) click to toggle source
# File lib/graphql/groups/group_type_registry.rb, line 24
def get(type)
  types[type]
end
register(type, derived) click to toggle source
# File lib/graphql/groups/group_type_registry.rb, line 20
def register(type, derived)
  types[type] = derived
end