Subject: [ruby-talk:24315] Re: yield works, but no block given
From: ts <decoux moulon.inra.fr>
Date: Sun, 4 Nov 2001 18:54:38 +0900
References: 24314
In-reply-to: 24314
>>>>> "J" == Joel VanderWerf <vjoel / PATH.Berkeley.EDU> writes:
J> Is yield psychic?
Yes,
block_given? return true if a block was given to the current frame.
yield look in the current frame, and the previous frame.
Guy Decoux