Created
May 18, 2022 09:34
-
-
Save denisdefreyne/40d4d9821dc9e5311183d479c7501352 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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