From: Stefano Crocco Date: 2008-06-10T21:11:44+09:00 Subject: Re: accessing class variables from the outside (beginner question) On Tuesday 10 June 2008, Robert Dober wrote: > On Tue, Jun 10, 2008 at 8:11 AM, Stefano Crocco wrote: > > Regarding your question. The only way to access instance variables from > > outside the instance is to create accessor methods for them. > > Hmm I do not know what to say, of course it is possible, but you are > probably right not talking about metaprogramming to a nuby ;). Of course, you're right. I meant: the normal way to access instance variables from the outside is to create accessor methods for them. There are other ways, for example the instance_variable_set and instance_variable_get methods, but they should be used only when in special cases. Stefano