From: Melody Class Date: 2010-10-24T06:16:27+09:00 Subject: Re: generating random argument lists Josh Cheek wrote in post #956077: > prefix the argument with a splat > > my_method( *array_of_arrays ) ah I see.. the splat either breaks an array into a list or pulls the list into an array, depending whether it's included in the def or the call so def my_method(*array_of_arrays) #takes a list array_of_arrays.each {|a| print a} end my_method(1,2,3) #=> 123 a=[1,2,3] my_method(*a) #=> 123 my_method(a) #=>[1,2,3] -- Posted via http://www.ruby-forum.com/.