From: Alan Chen Date: 2002-01-31T04:45:54+09:00 Subject: Re: strange behavior On Thu, Jan 31, 2002 at 04:18:27AM +0900, mengx@nielsenmedia.com wrote: > An indirectly related topic, A class method can not be called > within an instance without using the class name. > > class A > def A.a > end > > def b > a => error > A.a => ok. > end > end > > This also seems to be a surprise. Ruby class is itself an object > and this probably contributes to this behavior but I feel > it should be allowed. Would it be possible to change this. > > Thanks > > -Ted How would you differentiate between the following? (Although it might be confusing to someone to choose to do the following) class B def B.b end def b end def c B.b => ok b => ok end -- alan -- Alan Chen Digikata LLC http://digikata.com