From: Harry Ohlsen Date: 2004-03-24T12:22:57+09:00 Subject: Re: Ruby's module search path 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.