From: "Marvin Gülker" Date: 2010-07-23T03:08:03+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 think the RubyGems guidelines describe how a ruby project is typically structured. Additionally, I tend to create a directory for each module and a file for each class: / bin/ #Put your executables here data/ #Everything else needed for the project doc/ #RDoc for the lib/ directory ext/ #C-Extensions go here lib/ #Everything internal is handled here - my_namespace.rb #Contains module methods for MyNamespace my_namespace/ #Directory for classes in MyNamespace - my_class.rb #Contains MyClass my_inner_namespace/ - my_2nd_class.rb Marvin -- Posted via http://www.ruby-forum.com/.