class GraphQL::Language::AEnum
Overview
An enum value. The string is available as {#name}.
Defined in:
graphql/language/nodes.crConstant Summary
-
VALUES =
[] of Tuple(Symbol, Object.class)
-
An enum value. The string is available as {#name}.
-
VISITS =
[] of Tuple(Symbol, Array(Symbol))
-
An enum value. The string is available as {#name}.
Constructors
-
.new(**rest)
An enum value.
Class Method Summary
-
.values
An enum value.
Macro Summary
-
accessors(name, type, default)
An enum value.
-
traverse(name, *values)
An enum value.
-
values(args)
An enum value.
Instance Method Summary
-
#==(other : GraphQL::Language::AEnum)
An enum value.
-
#clone
Returns a copy of
self
with all instance variables cloned. - #to_value
-
#values
An enum value.
-
#visit(name, visited_ids = [] of UInt64, block = Proc(ASTNode, ASTNode | ::Nil).new do
end)
Recursively apply the given block to each node that gets visited with the given key which nodes get traverses for a given key can be set on a class via the:
traverse :name, :child_1, :child2
macro.
Instance methods inherited from class GraphQL::Language::NameOnlyNode
==(other : GraphQL::Language::NameOnlyNode)
==,
clone
clone,
name : String
name,
name=(name : String)
name=,
values
values,
visit(name, visited_ids = [] of UInt64, block = Proc(ASTNode, ASTNode | ::Nil).new do
end)
visit
Constructor methods inherited from class GraphQL::Language::NameOnlyNode
new(name, **rest)
new
Class methods inherited from class GraphQL::Language::NameOnlyNode
values
values
Macros inherited from class GraphQL::Language::NameOnlyNode
accessors(name, type, default)
accessors,
traverse(name, *values)
traverse,
values(args)
values
Instance methods inherited from class GraphQL::Language::ASTNode
==(other)
==,
clone
clone,
values
values
Class methods inherited from class GraphQL::Language::ASTNode
values
values
Macros inherited from class GraphQL::Language::ASTNode
accessors(name, type, default)
accessors,
make_value_methods
make_value_methods,
traverse(name, *values)
traverse,
values(args)
values
Constructor Detail
Class Method Detail
Macro Detail
Instance Method Detail
Recursively apply the given block to each
node that gets visited with the given key
which nodes get traverses for a given key
can be set on a class via the:
traverse :name, :child_1, :child2
macro. If no children are defined for a
given traversal path name the block is invoked
only with self.ode that gets visited with the given key
which nodes get traverses for a given key
can be set on a class via the:
traverse :name, :child_1, :child2
macro. If no children are defined for a
given traversal path name the block is invoked
only with self.