Last active
August 29, 2015 14:13
-
-
Save h0lyalg0rithm/6b4742eb6577fb1ae334 to your computer and use it in GitHub Desktop.
Ruby equality
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
van_glory = Game.new title: ‘Van Glory’ | |
fates = Game.new title: ‘Fates Forever’ | |
van_gloryless = Game.new title: ‘Van Glory’ | |
van_glory === van_glory # true | |
fates === van_glory # false | |
van_gloryless === van_glory # false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment