From: "R.. Kumar 1.9.1 OSX" Date: 2010-07-23T15:26:50+09:00 Subject: Re: Typical Ruby (non-rails) project structure. Carl Jenkins wrote: > What is/are the best-practice(s) for a Ruby project structure? > > As I am just learning Ruby I put everything in one file but, now I am > learning about Modules etc.. > > In Java, classes where in packages which helped with code organization. > Is there a typical way to layout a Ruby project structure? I would suggest using the same structure as the gem structure. You can use jeweler or any of the others mentioned. THis is especially useful if you might want to release as a gem later. In any case, if you do release gems in addition to this, its best to be used to one structure. If you are creating command-line programs or scripts, do look at thor, commander and gli. And hibernate. It's up to you to put one or more classes in one file. Typically, we have multiple folders within "lib", so these folders can be your packages. There was a thread recently on modules, it has some good links for more info. -- Posted via http://www.ruby-forum.com/.