From: Robert Klemme Date: 2006-11-10T18:15:08+09:00 Subject: Re: Spliting a line and passing the results On 10.11.2006 04:45, Sean Hussey wrote: > On 11/9/06, Jan Svitok wrote: >> KEYS = %w[ name id phone color temperature dog password ] >> >> data = line.chomp.split(...) >> hash = Hash[*(KEYS.zip(data))] I am not sure what you actually gain with this - unless of course your new and update methods would need to be rewritten to accept a Hash because all arguments are optional. Kind regards robert