On Tue, 29 Oct 2002 03:10:06 +0900, Lyle Johnson wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Gavin Sinclair wrote:
> | Then, when I run the test case, Ruby can't find "file.rb".
> I don't have any general tips around directory structure, etc. but
> for this particular program one solution is to use the '-I' option
> to specify addition directories for the search path, e.g.

There is a way to do this from the program, to wit '$:'.

    $: << '../src'
    require file.rb

There is no English equivalent of $: recorded in Pickaxe.

-austin
-- Austin Ziegler, austin / halostatue.ca on 2002.10.28 at 13.56.28