From: Robert Klemme Date: 2010-02-05T20:20:05+09:00 Subject: Re: Refining the use of file joins or file expand_path On 02/05/2010 01:44 AM, Albert Schlef wrote: > Robert Klemme wrote: >> Turning back to your original example: it looks like what you really >> want is to do "require 'ui'" > > I don't think it's safe to do "require 'ui'". Some other library may a > have a file by the same name and Ruby may load it instead of ours. > > So one should do "require 'mylibrary/ui'" instead. That was based on the example given and under the assumption that the library's name is "ui". In that case you would use reqire 'ui'. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/