From: John Barnette Date: 2010-09-17T05:11:57+09:00 Subject: Re: Get Proc of current block? On Aug 26, 2010, at 6:42 PM, Intransition wrote: > Is there any way to get a hold of the current block? I've been playing > around with recursive enumerations and it occurs to me that the most > flexible technique would simply be to reuse the currently running > block. Limited, and pure evil: lambda { |x| p x += 1; redo }[0] Infinitely increments. `redo` lets you restart the current block, but you must manipulate the original args instead of passing 'em. Don't do this. :) ~ j.