From: Bob Showalter Date: 2005-12-02T01:14:40+09:00 Subject: Re: How can I load my own files to ruby? (Win XP) Stephan.Kassel@gmx.de wrote: > I am just trying to get some knowledge in Ruby. For this I am playing > with some tutorials. > > In the tutorial I have to save some code to a file and load it > afterwards in the irb (with require). > > I don't want to mess up the installation, so I am saving all files > under my own special directory E:/User/stk/Programming/Ruby. > > Which enviroment variable do I have to use? What shall I do? The RUBYLIB environment variable lets you specify additional directories to be searched by 'require'. irb picks this up. Both ruby and irb (at least as of 1.8.2) support a -I option too.