From: Robert Klemme Date: 2006-04-19T18:09:47+09:00 Subject: Re: practices 2006/4/19, Tom Allison : > Is there anything of a best practices on how to use your own modules? > > I've been doing a LOT of this in perl and have just started to play with it in Ruby. > > Some things I am transistioning from are: > use lib -- how do I specify an alternate location for files? There is an env var, I believe it's RUBY_LIB. > modules/object/files: > It may be bad form to put more than on class in a single file, I know it is in > Perl. But is there a reason not to? I have some classes that are very tightly > related in inheritance and they are very small. I don't see much advantage to > ever physically breaking them apart. Then don't do it. It's fine to have them in the same file. Kind regards robert -- Have a look: http://www.flickr.com/photos/fussel-foto/