News for hackers. Stuff that matters.
Re:Understanding Ruby Blocks, Procs and Lambdas by Andys on Tuesday December 23, 2008 @06:06AM (#407463)
Yup, in your method signature you simply have one last parameter called &bl and then bl is set to the Proc object.

You can no longer call yield(...) but instead you have to use bl.call(...)

You can indeed save the Proc object and use it later.

There are no comments on this comment yet.