From: Gavin Sinclair Date: 2003-01-08T23:09:32+09:00 Subject: Re: Can you detect if a method takes a block argument? On Thursday, January 9, 2003, 1:05:52 AM, Hugh wrote: > On Wed, 8 Jan 2003, Martin Hart wrote: >> Is there a way to tell whether or not a method takes a block argument? > I think the question is, in fact, meaningless, because all methods can > take a block, but they might not do anything with it. > [...] > The inverse problem, "has a block been passed?", is answered by > block_given? And the *real* question - does method foo *do anything with* a block if one is given - seems to be unanswerable. Gavin