From: Aristarkh A Zagorodnikov Date: 2001-09-05T20:30:12+09:00 Subject: [ruby-talk:20919] Re: Removing singleton methods and instance variables - how ? > -----Original Message----- > From: ts [mailto:decoux@moulon.inra.fr] > Sent: Wednesday, September 05, 2001 3:17 PM > To: ruby-talk ML > Cc: ruby-talk@ruby-lang.org > Subject: [ruby-talk:20915] Re: Removing singleton methods and instance > variables - how ? > > > >>>>> "A" == Aristarkh A Zagorodnikov writes: > > A> def Test.test > A> @instance_variable = 'test' > A> end > > [...] > > A> Also, why remove_instance_variable accepts string which must > start from '@' > > The name of your instance variable begin with a '@' Obvious :) > > A> ? I believe it should take a symbol (:instance_variable in my case), > > No, ruby can have instance variable with a name *not* beginning > with a '@' Heh ... never thought of that, thanks. Aristarkh A Zagorodnikov, Lead Programmer, W3D Group http://www.w3d.ru /// xm@w3d.ru /// ICQ UIN 36987938