From: Ilan Berci Date: 2006-12-15T02:01:02+09:00 Subject: Re: Ilan Berci wrote: > > This method simply returns a string of "dummy" > >> >> def dummy=(arg) >> puts 'weird stuff' >> "dummy=" >> end >> > > This method entitled "dummy=" will NOT assign anything to anything and > although it looks like a mutator, it isn't. It will simply print 'weird > stuff' and return a string: dummy= > > Whoops! my mistake, as Dave mentioned, this method will return the RHS and not "dummy=". This was explicitly mentioned in his book and I now hang my head in shame.. sorry for the confusion.. ilan -- Posted via http://www.ruby-forum.com/.