From: Tim Pease Date: 2007-07-12T04:04:31+09:00 Subject: Re: module name == class name? On 7/11/07, aidy.lewis@googlemail.com wrote: > Hi, > > I use the open-source automated functional test tool: Watir. In each > class I hold methods relating to a specific HTML page. To avoid any > name conflict, I think I should be wrapping each class within a > module. Is it good form to have a module name that equals the class > name. > > e.g. module Login > class Login > > end > end ? > If your Login module only contains one class and nothing else, then you should remove the module and use only the class. You will still have the naming conflict if you should want another Login class. A different approach would be to encapsulate all the classes related to a particular website in a module. module MyWebsite class Login end class UserInfo end # etc. end Blessings, TwP