Dave Castellano wrote:
> Jesús Gabriel y Galán wrote:
>> On Wed, Jul 28, 2010 at 1:10 PM, Robert Klemme
>> <shortcutter / googlemail.com> wrote:
>> 
>>> Use Array#insert.
>> 
>> Amazing how I missed that, given that I was specifically looking for
>> it in the rdoc :D
>> I call "sleep deprived", or something
>> 
>> Jesus.
> 
> That works for single dimension arrays but I can't figure out the syntax 
> for multi...
> 
> I have been trying to use "answer_choices.insert" but cannot figure out 
> the syntax
> eg answer_choices.insert([x][1],correct_ans_1) does not work..
> 
> Could you give me an example of Array#insert. using multidim. array
> 
> Thanks,
> 
> DC

Sorry, missed your reply earlier.  That was what I needed.  Thank you 
for the help!

DC

-- 
Posted via http://www.ruby-forum.com/.