(&:stuff) > {|a| a.stuff}

PUBLISHED ON JAN 29, 2015 — IMPORTED FROM TUMBLR, TEXT

Rather than writing

object.map{ |o| o.action },

I just found out that I could write

object.map(&:action).

I’m currently attempting to suppress a very strong urge to refactor everything in my current project. No curly braces, no pipes? Sign me up!

src & in the Ruby docs