Method: GraphQL::Language::Nodes::AbstractNode#==

Defined in:
lib/graphql/language/nodes.rb

#==(other) ⇒ Boolean

Value equality

Returns:

  • (Boolean)

    True if self is equivalent to other



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

def ==(other)
  return true if equal?(other)
  other.kind_of?(self.class) &&
    other.scalars == self.scalars &&
    other.children == self.children
end