From: Hexren Date: 2008-04-10T03:55:34+09:00 Subject: My error or bug in "attr_reader" ? Hi guys. The code posted below actually modifies the array in the object. Am I doing something wrong here ? If not, this should imho be included in the doc. It seems counterintuitive to me ;) Regards Oliver ---------------------------------- class AttrReaderErr attr_reader :entries def initialize() @entries = [0,1,2] end end showcase = AttrReaderErr.new puts showcase.entries #should this really work ? showcase.entries[1]="foo" #it does, but looks wrong puts showcase.entries ----------------------------------