Skip to content

Instantly share code, notes, and snippets.

@denisdefreyne
Created May 18, 2022 09:34
Show Gist options
  • Save denisdefreyne/f1251d18390542d400a4e847bed750aa to your computer and use it in GitHub Desktop.
Save denisdefreyne/f1251d18390542d400a4e847bed750aa to your computer and use it in GitHub Desktop.
class Point
# …
def ==(other)
self.class == other.class &&
@x == other.x &&
@y == other.y
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment