From: ts Date: 2002-04-12T02:15:25+09:00 Subject: Re: Is eval a code/design smell? >>>>> "S" == Sean Middleditch writes: S> In the context of Ian McDonald's question - you have a reference of an S> instance variable, but you want the value from that reference. S> attr_accessor doesn't help in that case (that I can think of), does it? Its example was [ruby-talk:38034] def each self.instance_variables.each { |attr| yield(eval attr) } end I don't know why it want to do this but when I want to make the instance variables "public" I define accessors methods. Guy Decoux