Is "ampersand-colon" a preferable way to pass a proc to a method in Rails source?

Hello, i am trying to fix a bug in Rails, and also improve readability
of the code i am coming across in this process. I have a question: is


preferred over

map { |n| n.to_s }


I was going to use the first form, but decided to ask first.


Sorry, this was probably a wrong forum to post this.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs