From: rubisher Date: 2008-05-24T05:45:12+09:00 Subject: Re: Is it possible from a class to grab the name of the object instance? I単aki Baz Castillo wrote: > 2008/5/18, rubisher : > >> But to make maintenance easiest, isn't it possible in the methods to grab >> the name of the object (instance) (my ModuleName) for which it's on going to >> run? > > I remember asking if it's possible to get a variable name using any > variable method and the answer was "no". Yes I remember vaguely to have read something like this some where (obvioulsy no means to find back when you want). I also had the filling it was already sometime ago, so in the mean time it could be possible this changed in the implementation of ruby (I was to busy this last week to order the 3rd Edition of "Programming Ruby" but I will do asap ;-) > So I assume the same for > objects since basically are the same. > Tx for feedback, r.