From: "R.. Kumar" Date: 2010-06-11T22:15:37+09:00 Subject: Re: creating a gem structure for command line program Caleb Clausen wrote: > > If you have a file named lib/foo/main.rb, it should contain a class > named Foo::Main. I take it you have no such class, so you shouldn't > make a file of that name. > Ahh. Thanks for clarifying. Actually, the support files I have are not part of module Foo. They are common to various scripts/apps. (I had actually raised this question in a topic a few days back). So perhaps I should put those files in lib/common or some such folder, but not lib/foo. > The class named Foo should reside in your lib/foo.rb. > >> 3. lib/foo.rb - currently I've got an empty file. > > Typically, this file would require everything (or many things) in > lib/foo/, as well as the implementation of class/module Foo itself. Thanks for clarifying this. Now I am clear. -- Posted via http://www.ruby-forum.com/.