The &
is a shortcut to Symbol#to_proc
which will convert the symbol you pass to it to a method name on the object. So &:name
converts to { |reciever| receiever.name }
which is then passed to the map method.
It's a great way to make your code a lot more concise and avoid having tons of blocks all over the place.