Stefan Kaes wrote:
> Robert Klemme wrote:
>
>> You cannot trust IRB on local variables.  This too comes up from
>> time to time in these circumstances... :-)
>>
> Which means that irb has a bug that doesn't get fixed.

No, it's not a bug.  It's a conceptual thing that cannot be fixed: IRB
must process Ruby code line by line while normally all the code in a file
gets parsed and compiled into bytecode and then executed.

Kind regards

    robert