From: Vetrivel Vetrivel Date: 2009-02-25T14:04:57+09:00 Subject: Re: array Ashikali Ashikali wrote: > Vetrivel Vetrivel wrote: >> >> >> How to Join multiple arrays in a single method in ruby >> Ex: >> a= [ 1 ,2 , 3] >> b = [4,5,6] >> c = [7,8,9] >> Using single method i want b and c array content into the a array. > > Hey , what is this ? are you read documentation for ruby or any thing > else ?. > > Answer is , > a + b + c We can do this .In ruby The '+' is method.You are calling '+' method three times.But I have asked using single function we have to do. -- Posted via http://www.ruby-forum.com/.