[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby's include path

Andrew Libby

10/14/2006 1:33:00 PM


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?).

Thanks a bunch.

Andy

--
Andrew Libby
Tangeis, LLC
Innovative IT Management Solutions
alibby@tangeis.com

2 Answers

dblack

10/14/2006 1:39:00 PM

0

Andrew Libby

10/14/2006 1:42:00 PM

0


Outstanding, thanks!

Andy





dblack@wobblini.net wrote:
> 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
>

--
Andrew Libby
Tangeis, LLC
Innovative IT Management Solutions
alibby@tangeis.com