From: Gavin Sinclair Date: 2003-01-10T10:53:56+09:00 Subject: Re: accessing a function without initalization On Friday, January 10, 2003, 6:16:22 AM, Daniel wrote: > On Fri, Jan 10, 2003 at 04:10:59AM +0900, Daniel Bretoi wrote: >> thanks everyone. >> def Test.hello was the answer for everyone else who might wonder. > I've noticed that self.hello works just as well. Are there any > disadvantages to this? > db See http://www.rubygarden.org/ruby?ClassMethods for more on this matter. There's no "disadvantage" as such, but it's good for you to know the various ways of defining class methods. Gavin