Forum: Ruby Distribution of a Module

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bradley G. (Guest)
on 2007-01-10 00:55
Hi all,

I'm new to Ruby and have created a few wrapper modules that help with
the way that my colleagues and I interact with the Mysql class and I'd
like to distribute it to them in a logical manner.

Rather than just give them the module.rb file, I'd like to put it into a
path on their machine that allows them to just "require 'module.rb'"

I've tried just dumping the file in a few of the $: directories
specified but when I try to "require" the file, it simply does not work.

Am I doing something incorrectly as the Ruby documentation says that if
the file is within one of the search paths, Ruby will be able to find
it.

The file name is called "dao.rb". The module works if the dao.rb file is
in the same directory as the program that they're using but fails when I
move it to a search path directory.

Any help would be most appreciated.

Thanks
Bradley q:)
This topic is locked and can not be replied to.