From: Joel VanderWerf Date: 2005-06-11T02:43:11+09:00 Subject: Re: Is there a Ruby equivilant to Python's exec_file? Wayne Pierce wrote: > I'm working on a white-box security auditing framework, which is > currently written in Python and makes use of exec_file to load some > security scans at startup. Is there a way to do the same thing in > Ruby? > > For those not familiar with Python, exec_file allows me to read an > external file and save the resulting objects to a hash/dictionary of > my choosing. I can then check the values or execute functions that > have been saved in my hash. Check out "script" on RAA: http://raa.ruby-lang.org/project/script.