From: ptkwt@... (Phil Tomson) Date: 2004-03-25T02:54:32+09:00 Subject: Re: Ruby's module search path In article <200403241117.11441@vadim.nasardinov>, Vadim Nasardinov wrote: >On Tuesday 23 March 2004 23:50, Mehr, Assaph (Assaph) wrote: >> X-Mail-Count: 95687 >> Message-Id: ><338366A6D2E2CA4C9DAEAE652E12A1DE01115DD3@au3010avexu1.global.avaya.com> >> >> 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 > >.. > >> X-Mail-Count: 95698 >> Message-Id: ><338366A6D2E2CA4C9DAEAE652E12A1DE01115DE2@au3010avexu1.global.avaya.com> >> >> > From the output, I'm guessing $" is the list of requires that have >> > been executed so far? >> >> Correct. Run your own code on 'english' :-) > > >$" is aliased to $LOADED_FEATURES, but the $: variable does not seem >to have an 'English' alias: >http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/lib/English.rb?rev=1.4 > $: is aliased to $LOAD_PATH Phil