Skip to content

Instantly share code, notes, and snippets.

@h0lyalg0rithm
Last active August 29, 2015 14:13
Show Gist options
  • Save h0lyalg0rithm/6b4742eb6577fb1ae334 to your computer and use it in GitHub Desktop.
Save h0lyalg0rithm/6b4742eb6577fb1ae334 to your computer and use it in GitHub Desktop.
Ruby equality
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