Class: GQL::Config
- Inherits:
-
Object
- Object
- GQL::Config
- Defined in:
- lib/gql/config.rb
Instance Method Summary collapse
- #field_types ⇒ Object
- #field_types=(value) ⇒ Object
- #root_node_class ⇒ Object
- #root_node_class=(value) ⇒ Object
Instance Method Details
#field_types ⇒ Object
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_class ⇒ Object
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 |