From: Todd Benson Date: 2008-02-22T05:27:59+09:00 Subject: Re: Where does instance_eval _magically_ set the variable to? On Thu, Feb 21, 2008 at 2:10 PM, Andrew Chen wrote: > Jeri, > > > > How about: > > load 'param.txt' > > > > Load doesn't get the variable into the current namespace. Maybe I > used it wrong? Nope, you didn't. I'm sure there's a reason for that; probably to prevent accidental corruption of namespace. If you must use load, you'll have to build methods in the loaded file instead of variables... def name; 'John'; end ...which may or may not work for you. I suggest going the YAML route. I suppose there are other ways to serialize data, too. Todd