Dynamic Variable Names

Is it possible to create dynamic variable names in ruby?

See #instance_variable_set, #instance_variable_get. However, as others have said...use a Hash.

Also search the mailing list. This has come up before.

···

From: Chris Martin [mailto:chriscodes@gmail.com]

Thanks all!
Steve, that's basically the idea.

Gavin, this is what I was looking for but couldn't find, thanks for
the push in the right direction.

···

On 12/15/06, Gavin Kistner <gavin.kistner@anark.com> wrote:

From: Chris Martin [mailto:chriscodes@gmail.com]
> Is it possible to create dynamic variable names in ruby?

See #instance_variable_set, #instance_variable_get. However, as others have said...use a Hash.

Also search the mailing list. This has come up before.

--
Chris Martin
Web Developer
Open Source & Web Standards Advocate