>>>>> "S" == Sean Middleditch <elanthis / awesomeplay.com> 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