From: Joel VanderWerf Date: 2009-08-11T04:47:15+09:00 Subject: Re: instance_variables vs. local_variables David Whetstone wrote: > local_variables lists 'a' before it is defined. It appears as though > local_variables is a list generated at parse time. That's exactly right, IIRC. Ruby, unlike smalltalk, lets you add ivars at any time, so instance_variables can only return what has been defined up to that point. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407