tags:

views:

22

answers:

1

I have two files with the same name "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 ?

+2  A: 

What happens if you explicitly specify the path to the file required?

Something like:

require 'lib/the/correct/Foo_folder/Foo'
Mike Woodhouse
Yes, I don't see any other alternative. Thx
JCLL