From: dblack@... Date: 2006-10-14T22:39:20+09:00 Subject: Re: Ruby's include path Hi -- On Sat, 14 Oct 2006, Andrew Libby wrote: > > Greetings, > > I'm searching for something equivilent to Perl's "use lib". I can see that > there is a -I parameter to ruby itself, but that seems clumsy when there are > many paths to be added to the include path (is that what ruby even calls > it?). It's called the load path, and it's stored in the global $: variable, which is an array to which you can add: $:.push("/whatever") If you don't like $: you can also address it as $LOAD_PATH. David -- David A. Black | dblack@wobblini.net Author of "Ruby for Rails" [1] | Ruby/Rails training & consultancy [3] DABlog (DAB's Weblog) [2] | Co-director, Ruby Central, Inc. [4] [1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com [2] http://dablog.rubypal.com | [4] http://www.rubycentral.org