Method: Equalizer::Methods#eql?

Defined in:
lib/equalizer.rb

#eql?(other) ⇒ Boolean

Compare the object with other object for equality

Examples:

object.eql?(other)  # => true or false

Parameters:

  • other (Object)

    the other object to compare with

Returns:

  • (Boolean)


101
102
103
# File 'lib/equalizer.rb', line 101

def eql?(other)
  instance_of?(other.class) && cmp?(__method__, other)
end