Require behavior in presence of two files of the same name

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

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
[email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs