From: "Ara.T.Howard" Date: 2005-06-11T03:14:24+09:00 Subject: Re: Is there a Ruby equivilant to Python's exec_file? On Sat, 11 Jun 2005, Joel VanderWerf wrote: > 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. that's very cool joel! i did something with a similar intent, but slight different impl, at http://raa.ruby-lang.org/project/dynaload/ cheers. > -a -- =============================================================================== | email :: ara [dot] t [dot] howard [at] noaa [dot] gov | phone :: 303.497.6469 | My religion is very simple. My religion is kindness. | --Tenzin Gyatso ===============================================================================