Class: GQL::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/gql/config.rb

Instance Method Summary collapse

Instance Method Details

#field_typesObject



15
16
17
# File 'lib/gql/config.rb', line 15

def field_types
  @@field_types ||= {}
end

#field_types=(value) ⇒ Object



19
20
21
# File 'lib/gql/config.rb', line 19

def field_types=(value)
  @@field_types = value
end

#root_node_classObject



3
4
5
# File 'lib/gql/config.rb', line 3

def root_node_class
  @@root_node_class ||= nil
end

#root_node_class=(value) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/gql/config.rb', line 7

def root_node_class=(value)
  unless value.nil? || value <= Node
    raise Errors::InvalidNodeClass.new(value, Node)
  end

  @@root_node_class = value
end