From: Trans Date: 2006-08-12T05:25:06+09:00 Subject: Re: load paths unions? nobu@ruby-lang.org wrote: > Hi, > > At Wed, 9 Aug 2006 01:10:11 +0900, > Trans wrote in [ruby-talk:207056]: > > I want to be able to "union" some load paths. Eg. given > > > > lib/facets/more > > lib/facets/core > > > > I'd like to be able to do > > > > require 'facets/foo.rb' > > > > And have it search both more/ and core/ for foo.rb. > > By moving them to > lib/facets/more/facets/foo.rb > lib/facets/core/facets/foo.rb > and appending lib/facets/more and lib/facets/core to $:. BTW, that is nice solution, even if it is a bit lengthly when it comes to the path names. Unfortunately Facets has no central require in which I can append the paths to $:. Maybe it needs to. We'll see. Thanks, T. > -- > Nobu Nakada