[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Calling a setter method in self (without self.

Miramichi

3/12/2007 10:11:00 PM

Hi

I'm writing a code where it would be desirable to be able to call setter
methods in self without having to specify self explicitly. Like:
x = 0 # calls self.x=, does not assign to a local variable

In Ruby 1.6 this was impossible. Is this still the case in 1.8 and 1.9?
I believe it is, but would like to be sure.

Thanks!

--
Tapio
1 Answer

Ara.T.Howard

3/12/2007 10:30:00 PM

0