Skip to content

Instantly share code, notes, and snippets.

@garethrees
Created July 19, 2012 09:58
Show Gist options
  • Select an option

  • Save garethrees/3142805 to your computer and use it in GitHub Desktop.

Select an option

Save garethrees/3142805 to your computer and use it in GitHub Desktop.
Ruby Symbols
a = Person.new("Gareth", :occupation => "dev", :gender => "male", :hometown => "Pontypridd")
b = Person.new("Gareth", :hometown => "Pontypridd", :gender => "male", :occupation => "dev")
# a == b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment