The clever hack that makes `items.map(&:name)` work
Ruby’s “ampersand colon” isn’t an operator. I wrote a quick blog post explaining how it works under the hood: http://blog.honeybadger.io/how-ruby-ampersand-colon-works/
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Ruby’s “ampersand colon” isn’t an operator. I wrote a quick blog post explaining how it works under the hood: http://blog.honeybadger.io/how-ruby-ampersand-colon-works/
Post a comment