Method: GraphQL::BaseType#==

Defined in:
lib/graphql/base_type.rb

#==(other) ⇒ Boolean

Returns are these types equivalent? (incl. non-null, list).

Parameters:

Returns:

  • (Boolean)

    are these types equivalent? (incl. non-null, list)


57
58
59
60
61
62
63
# File 'lib/graphql/base_type.rb', line 57

def ==(other)
  if other.is_a?(GraphQL::BaseType)
    self.to_s == other.to_s
  else
    super
  end
end