The advantage is that it won’t matter if you ever change the classname. The
main drawback is that it doesn’t look as pretty.
Regards,
Dan
···
-----Original Message-----
From: gminick [mailto:gminick@underground.org.pl]
Sent: Thursday, January 09, 2003 12:22 PM
To: ruby-talk@ruby-lang.org
Subject: Re: accessing a function without initalizationOn Fri, Jan 10, 2003 at 04:16:22AM +0900, Daniel Bretoi wrote:
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?
Smells like python, but it isn’t a disadvantage (at least) for me ;>