From: Todd Benson Date: 2008-02-22T06:53:22+09:00 Subject: Re: Where does instance_eval _magically_ set the variable to? On Thu, Feb 21, 2008 at 2:44 PM, Andrew Chen wrote: > Todd, > Yes, load more proper here than instance_eval. > Also, I will use File.open block instead of File.read. > > However, this is still a mystery: > In the original code, where did the variable "name" go? How to access > that? It's signed up for garbage collection when you exit the #instance_eval or #load method (I think). In other words, it has a temporary existence. There's nothing holding on to it (referencing it). Todd