From: "Marvin Gülker" Date: 2010-07-23T03:33:11+09:00 Subject: Re: Typical Ruby (non-rails) project structure. Carl Jenkins wrote: > >> / >> 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 > > So all my code looks like it would go under lib/ correct? > What does -my_namespace.rb refer to? Is this the Ruby class driver for > the applicaiton? Also my_inner_namespace.. not sure I understand this? Most of the code goes under lib/, that's correct. The -my_namespace.rb isn't anything special, my_namespace.rb is a regular Ruby file. I just used a - sign to distinguish a file from a directory, i.e. if I write dir/ - file1.rb - file2.rb subdir/ - file3.rb then those ending with / are directories and those beginning with - are files. Regarding your other question I just repost my example with more comments: / bin/ #Put your executables here data/ #Everything else needed for the project, e.g. graphics doc/ #RDoc for the lib/ directory, auto-generated by running the rdoc command 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 MyNamespace::MyClass my_inner_namespace/ #Directry for classes in MyNamespace::MyInnerNamespace - my_2nd_class.rb #Contains MyNamespace::MyInnerNamespace::My2ndClass Marvin -- Posted via http://www.ruby-forum.com/.