From: Todd Benson Date: 2008-02-22T20:32:54+09:00 Subject: Re: Where does instance_eval _magically_ set the variable to? On Thu, Feb 21, 2008 at 3:14 PM, Andrew Chen wrote: > Also, the load_yaml won't work, because I need to setup variables > dynamically. You want to do variable assignment via a file, right? Is it not possible to do this? $ cat a.yml name: John $ cat a.rb h = YAML.load_file('a.yml') puts h['name'] Todd