From: Tom Sawyer Date: 2002-07-19T16:23:22+09:00 Subject: Re: #name of instance opps, slight typo. not bob, but bobo: class A def myname puts self.name # ? end end bobo = A.new bobo.myname # OOPS producing: bobo On Fri, 2002-07-19 at 01:07, Tom Sawyer wrote: > i'm back at trying to get a form to be automagically update from changes > to an associated object. this is the first time i've really started to > hit dead ends with ruby... > > is there any way to get the name of an instance variable? > > class A > def myname > puts self.name # ? > end > end > > bobo = A.new > bob.myname > > producing: > > bobo > > > -- > ~transami > > _(")_ dobee dobee do... > \v/ > ^ ^ > > -- ~transami _(")_ dobee dobee do... \v/ ^ ^