Class: GraphQL::Language::Nodes::Document

Inherits:
AbstractNode show all
Defined in:
lib/graphql/language/nodes.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractNode

#col, #line

Instance Method Summary collapse

Methods inherited from AbstractNode

child_attributes, #children, #initialize, #position

Constructor Details

This class inherits a constructor from GraphQL::Language::Nodes::AbstractNode

Instance Attribute Details

#definitionsObject

Returns the value of attribute definitions.



94
95
96
# File 'lib/graphql/language/nodes.rb', line 94

def definitions
  @definitions
end

Instance Method Details

#initialize_node(definitions: []) ⇒ Object



97
98
99
# File 'lib/graphql/language/nodes.rb', line 97

def initialize_node(definitions: [])
  @definitions = definitions
end