On Dec 12, 1:30 pm, "David Masover" <[email protected]> wrote:
> Yes, this will work with strings also -- but Pathnames are smart enough to
> actually interpret those relative paths before passing them to 'require' and
> friends.

... which is a helpful feature -- you can end up requiring a file
twice if you pass two different strings to require that reference the
same file:

# requires 'mylib' twice
require 'mylib'
require 'mysubdir/../mylib'

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to