Require behavior in presence of two files of the same name


#1

If I do

require ‘x’

and there are two x.rb files somewhere on the load path, which one will
be require’d?

Thanks,
Wes


#2

On Dec 4, 2008, at 1:10 PM, Wes G. wrote:

If I do

require ‘x’

and there are two x.rb files somewhere on the load path, which one
will
be require’d?

Thanks,
Wes

the first on that it finds while looking through the list in the load
path

-Rob

Rob B. http://agileconsultingllc.com
removed_email_address@domain.invalid