Class: GraphQL::Language::Nodes::WrapperType

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

Overview

Base class for non-null type names and list type names

Direct Known Subclasses

ListType, NonNullType

Instance Attribute Summary collapse

Attributes inherited from AbstractNode

#col, #filename, #line

Instance Method Summary collapse

Methods inherited from AbstractNode

child_attributes, #eql?, inherited, #initialize, #position, scalar_attributes, #scalars, #to_query_string

Constructor Details

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

Instance Attribute Details

#of_typeObject

Returns the value of attribute of_type.



88
89
90
# File 'lib/graphql/language/nodes.rb', line 88

def of_type
  @of_type
end

Instance Method Details

#childrenObject



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

def children
  [].freeze
end

#initialize_node(of_type: nil) ⇒ Object



91
92
93
# File 'lib/graphql/language/nodes.rb', line 91

def initialize_node(of_type: nil)
  @of_type = of_type
end