From: Holden Glova Date: 2001-07-04T18:04:27+09:00 Subject: [ruby-talk:17226] Re: Getting variable name -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 04 Jul 2001 20:40, DaVinci wrote: > Hi. > > How can I get a variable name string?. Example: > > @foo -> 'foo' > > Greets. > > David Hi David, I'm going to go out on a limb here and assume you can't because that is an instance variable and you don't have an instance. Assuming you did have an instance you would have a public method that would give you the name(s). Just a thought. - -- Signed, Holden Glova -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7QttH+mF116Lw2cQRAkRsAJ0YG6jtMBXJ1zxORyXt+Ly5CwJNUwCdF0W8 56/UB+SIs0kVK4v7KgIx3Uw= =zc4L -----END PGP SIGNATURE-----