Mehr, Assaph (Assaph) wrote:

> I use:
> 
> def which(libname)
>   $:.each { |d|
>     f = File.join(d, libname)
>     p f if File.exists? f
>     f += ".rb"
>     p f if File.exists? f
>   }
>   nil
> end

Excellent!  Works a treat.  Thanks.

I just find it's often handy to take a peek at the code for a module, but just slightly painful to locate the right file.

Cheers,

Harry O.