From: Thomas Wieczorek Date: 2008-08-28T19:14:11+09:00 Subject: Re: dont def need return On Thu, Aug 28, 2008 at 11:30 AM, Sijo Kg wrote: > Hi > I was learing Ruby and have code like > Class TestClass > def getcolors > arr=["Blue","Yellow"] > arr1=["1","2"] > end > end > obj=TestClass.new > puts obj.getcolors > If you want to return both arrays combine them in another array on the last line: [arr, arr1] and you'll get an array containing [["Blue", "Yellow"], ["1", "2"]]