This was a talk given at BostonRB. It was an introduction to an aspect of Ruby that is not talked about very often but that represents one of the distinctive features of the language.
Proc so we can pass it around We use “&” when calling our collect method to convert the Proc back into a block because it expects one Tuesday, May 28, 13
in. Procs do not. Procs ignore any missing arguments, assigning nil to them. Lamdas return to the calling method, Procs return immediately without going back to the caller. Tuesday, May 28, 13