From: Ammar Ali Date: 2010-09-08T18:36:54+09:00 Subject: Re: Receiving array naturally? On Wed, Sep 8, 2010 at 10:09 AM, Robert Klemme wrote: > You could do > > def simple(*a) >  a.flatten.each do |x| >    x.whatever >  end > end It's also possible to use * when passing the array to the method, without changing the method: > some_items = [1, "more", %w{four six eight}] > some_method *some_items Regards, Ammar