From: Ross Bamford Date: 2006-01-09T08:18:01+09:00 Subject: Re: Passing a hash of args On Sun, 08 Jan 2006 23:00:42 -0000, Daniel Harple wrote: > Jonathan Leighton wrote: > >> Is there a way to pass each item is a hash as a successive argument to a >> function? >> >> ie: >> >> time = { >> :year => 2003 >> :month => 03 >> :day => 24 >> } >> Time.local(time) >> >> (that wouldn't work but you get the idea) >> > > Time.local(*time.values.reverse) > Pretty sure that'd only work with some hashes, and only if you had less than a bucketful of entries? Cheers, -- Ross Bamford - rosco@roscopeco.remove.co.uk