Skip to content

Instantly share code, notes, and snippets.

@RobertFischer
Created September 7, 2012 19:47
Show Gist options
  • Save RobertFischer/3669060 to your computer and use it in GitHub Desktop.
Save RobertFischer/3669060 to your computer and use it in GitHub Desktop.
Ampersand Equivalency
foos.find(&:bar)
foos.find do |it|
it.bar
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment