class GraphQL::Language::Nodes::WrapperType
Base class for non-null type names and list type names
Attributes
Public Class Methods
# File lib/graphql/language/nodes.rb, line 253 def self.from_a(filename, line, col, of_type, comment: nil) self.new(filename: filename, line: line, col: col, of_type: of_type) end
(?of_type: untyped, ?line: Integer?, ?col: Integer?, ?pos: Integer?, ?filename: String?, ?source: untyped) → void
Source
# File lib/graphql/language/nodes.rb, line 244 def initialize(of_type: nil, line: nil, col: nil, pos: nil, filename: nil, source: nil) @line = line @col = col @pos = pos @filename = filename @source = source @of_type = of_type end
Public Instance Methods
Source
# File lib/graphql/language/nodes.rb, line 257 def marshal_dump [ line, col, # use methods here to force them to be calculated @filename, @of_type, ] end
Source
# File lib/graphql/language/nodes.rb, line 265 def marshal_load(values) @line, @col, @filename, @of_type = values end
Source
# File lib/graphql/language/nodes.rb, line 239 def scalars @scalars ||= [@of_type].freeze end
Source
# File lib/graphql/language/nodes.rb, line 232 def visit_method :on_wrapper_type end