class RuboCop::Cop::Lint::IdentityComparison

Prefer ‘equal?` over `==` when comparing `object_id`.

‘Object#equal?` is provided to compare objects for identity, and in contrast `Object#==` is provided for the purpose of doing value comparison.

@example

# bad
foo.object_id == bar.object_id
foo.object_id != baz.object_id

# good
foo.equal?(bar)
!foo.equal?(baz)