Re: Array of Hashes in an array of hashes - Complicated!
- From: Matt Brooks <mattbrooks@xxxxxxxxxx>
- Date: Wed, 16 Sep 2009 11:39:32 -0500
Matt Brooks wrote:
2.) Is there a way to make the 'signal_index' a variable? I would like
to be able to store the contents of a variable as the name that is then
associated with a value.
like this possibly? I want the contents of parameter_name to be the
label or name associated with the contents of the variable
parameter_value
@signals[signal_index].add_variable(#{parameter_name}, parameter_value)
nevermind on #2, I got that to work!
@signals[signal_index].add_variable(parameter_name.to_sym,
parameter_value)
--
Posted via http://www.ruby-forum.com/.
.
- References:
- Array of Hashes in an array of hashes - Complicated!
- From: Matt Brooks
- Re: Array of Hashes in an array of hashes - Complicated!
- From: John W Higgins
- Re: Array of Hashes in an array of hashes - Complicated!
- From: Matt Brooks
- Re: Array of Hashes in an array of hashes - Complicated!
- From: John W Higgins
- Re: Array of Hashes in an array of hashes - Complicated!
- From: Aldric Giacomoni
- Re: Array of Hashes in an array of hashes - Complicated!
- From: David A. Black
- Re: Array of Hashes in an array of hashes - Complicated!
- From: Matt Brooks
- Re: Array of Hashes in an array of hashes - Complicated!
- From: John W Higgins
- Re: Array of Hashes in an array of hashes - Complicated!
- From: Matt Brooks
- Array of Hashes in an array of hashes - Complicated!
- Prev by Date: Re: Array of Hashes in an array of hashes - Complicated!
- Next by Date: Re: string to array
- Previous by thread: Re: Array of Hashes in an array of hashes - Complicated!
- Next by thread: Re: Array of Hashes in an array of hashes - Complicated!
- Index(es):
Relevant Pages
|