On Sun, 08 Jan 2006 23:00:42 -0000, Daniel Harple  
<dharple / generalconsumption.org> 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