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

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

Direct Known Subclasses

ListType, NonNullType

Instance Attribute Summary collapse

Attributes inherited from AbstractNode

#col, #line

Instance Method Summary collapse

Methods inherited from AbstractNode

child_attributes, #initialize, #position

Constructor Details

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

Instance Attribute Details

#of_typeObject

Returns the value of attribute of_type.



48
49
50
# File 'lib/graphql/language/nodes.rb', line 48

def of_type
  @of_type
end

Instance Method Details

#childrenObject



53
54
55
# File 'lib/graphql/language/nodes.rb', line 53

def children
  [].freeze
end

#initialize_node(of_type: nil) ⇒ Object



49
50
51
# File 'lib/graphql/language/nodes.rb', line 49

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