From: Joel VanderWerf Date: 2006-02-23T04:07:38+09:00 Subject: Re: How to evaluate file as Ruby code? Ross Bamford wrote: > Another technique I've used with great success is having a class that > acts as context for an external script, providing methods and holding > data in instance variables. You supply a script similar to yours above, > except using instance variables, which is then instance_eval'd in an > instance of that class, after which you have a self-contained > configuration, or whatever else it is you made. For example, http://raa.ruby-lang.org/project/script -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407