Missing &:
Thomas Quas
1 post
|
Howdy, I’m missing an explanation of the wonderful &:. How about ‘line_items.to_a.sum(&:full_price)’? |
Dave Thomas
Administrator
16 posts
|
Thomas: It’s described in several places—at the end of the tutorial chapter on containers, and under Symbol#to_proc. |
2 posts, 2 voices
