From: Daniel Bretoi Date: 2003-01-10T04:16:22+09:00 Subject: Re: accessing a function without initalization 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 > > db > > On Fri, Jan 10, 2003 at 03:55:32AM +0900, Daniel Bretoi wrote: > > class Test > > def hello > > puts "hello" > > end > > end > > > > Test.hello > > > > How would I get this to work? I get undefined method 'hello' for > > Test:Class > > > > db > > > > -- > > Jan 9 Fellowship reaches Lorien (LOTR) > > Jan 9 Plough Monday > > Jan 9 Day of the Martyrs in Panama > > Jan 9 James Patrick Page (Led Zeppelin) is born in Middlesex, England, 1945 > > -- > Jan 9 Fellowship reaches Lorien (LOTR) > Jan 9 Plough Monday > Jan 9 Day of the Martyrs in Panama > Jan 9 James Patrick Page (Led Zeppelin) is born in Middlesex, England, 1945 -- Jan 9 Fellowship reaches Lorien (LOTR) Jan 9 Plough Monday Jan 9 Day of the Martyrs in Panama Jan 9 James Patrick Page (Led Zeppelin) is born in Middlesex, England, 1945