From: botp Date: 2010-09-09T14:39:21+09:00 Subject: Re: Receiving array naturally? On Wed, Sep 8, 2010 at 1:10 PM, Terry Michaels wrote: >  def process_data(*strings) >     ... >  end yes > Do I need to write code that checks whether each object passed in is an array or not yes >, manually splitting if necessary (which perhaps is > complicated) or is there something else I'm overlooking? Or perhaps is > my whole idea dumb from the start...? no starting fr your splat technique... you just need to adjust a little bit... eg, >> def m *a >> a = a.first if a.first.is_a? Array >> a >> end => nil >> m 1,2 => [1, 2] >> m [1,2] => [1, 2] >> m [1,2,"a",[3,4]] => [1, 2, "a", [3, 4]] >> m 1,2,"a",[3,4] => [1, 2, "a", [3, 4]] >> welcome to the wonderful world of ruby. best regards -botp