Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Distribution of a Module

Reply
Thread Tools

Distribution of a Module

 
 
Bradley Gibby
Guest
Posts: n/a
 
      01-09-2007
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

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Instruction for Leviton 1x9 Bridged Telephone Distribution Module installation wjair VOIP 2 01-24-2007 06:11 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57