-
-
Save havenwood/549e4bc6d67aeccb64bdd77b07be09fc to your computer and use it in GitHub Desktop.
This file contains 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 Foo | |
def == _ | |
true | |
end | |
end | |
class Bar | |
def == _ | |
false | |
end | |
end | |
foo = Foo.new | |
bar = Bar.new | |
foo == foo | |
#=> true | |
bar == bar | |
#=> false | |
foo != foo | |
#=> false | |
bar != bar | |
#=> true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment