Todd Benson
7/9/2007 1:14:00 PM
On 7/9/07, Marcin Raczkowski <swistak@mailx.expro.pl> wrote:
> Little follow up
> from what i've found it's almost certenly bug:
>
> ===============================
> item = elements.find { |k, v| k.name == name }
> if item
> elename, class_name = item
snip
> ========================
> elname is never even assigned if item is nil itself
Correct.
If item is nil, the statement immediately below it (elename,
class_name = item) will not be executed.
Todd