From: Dennis Decker Jensen Date: 2001-04-23T07:23:56+09:00 Subject: [ruby-talk:14046] Re: RCR: getClassFromString method Harry Ohlsen wrote: | By the way, I asked the question yesterday as to where I should put | code that I want executed every time the interpreter is started, so | that I don't have to do a "require 'xxx'" in each module where I want | to use this. So far, I haven't received any advice. Well. How about using the option '-r'? prompt> ruby -r XXX -w your_ruby_script.rb Then the script XXX.rb is loaded (required) and executed before your script runs, provided that it is in the $LOAD_PATH. Regards, Dennis Decker Jensen