Class: GraphQL::InternalRepresentation::Node::NoTypedChildren Private

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/internal_representation/node.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

A specialized, reusable object for leaf nodes. Behaves like a Hash, but doesn't copy itself.

Constant Summary collapse

CHILDREN =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

[].freeze

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name, *args, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Compatibility for when this was an Array:


20
21
22
23
24
25
26
# File 'lib/graphql/internal_representation/node.rb', line 20

def method_missing(method_name, *args, &block)
  if CHILDREN.respond_to?(method_name)
    CHILDREN.send(method_name, *args, &block)
  else
    raise NotImplementedError
  end
end

Instance Method Details

#[](key) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


16
# File 'lib/graphql/internal_representation/node.rb', line 16

def [](key); CHILDREN; end

#any?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)

14
# File 'lib/graphql/internal_representation/node.rb', line 14

def any?; false; end

#dupObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


13
# File 'lib/graphql/internal_representation/node.rb', line 13

def dup; self; end

#eachObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


17
# File 'lib/graphql/internal_representation/node.rb', line 17

def each; end

#none?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)

15
# File 'lib/graphql/internal_representation/node.rb', line 15

def none?; true; end