From: Doug Jolley Date: 2012-06-30T00:33:00+09:00 Subject: Accessor Methods with a Twist I am surprised that the code shown below returns, 'Doug'. I would expect that it would return, 'Fred'. Can someone please tell me why? @name = 'Doug' def name=(name) @name = name end def name() return @name end name=('Fred') puts(name()) Thanks. ... doug P.S. - Please understand that this question is academic to help me understand things. Naturally, I would not do this in practice. Thanks again. -- Posted via http://www.ruby-forum.com/.