From: 7stud -- Date: 2007-11-24T08:37:50+09:00 Subject: Re: Class variable as parameter Filipe wrote: > I have the following situation: > def initialize > @myVar=0 > setVar(@myVar,1)> > > Unfortunately, this piece of code is returning 0 instead of the 1 I > would expect. Is there anything I could do? > Yes: def initialize @myVar = 0 @myVar = 1 ... -- Posted via http://www.ruby-forum.com/.