I saw it in some sample Ruby code someone had posted. It was something like:
a.sort_by(&:name)
where a
is an array or ActiveRecord objects and :name
is one of the attributes.
I have never seen &:name
and Ruby's Symbol class documentation says nothing about it. Probably something really simple. :)