Two files with the same name pointed by RUBYLIB?
I have two files with the same name开发者_如何学JAVA "Foo.rb" in the directories pointed by my RUBYLIB env variable.
This causes the interpreter to fail, when 'require "Foo"' is invoked. It cannot know which to use.
How to solve this without renaming the files ?
What happens if you explicitly specify the path to the file required?
Something like:
require 'lib/the/correct/Foo_folder/Foo'
精彩评论