Created
May 18, 2022 09:34
-
-
Save denisdefreyne/f1251d18390542d400a4e847bed750aa 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