I came up with this:

def foo(args = {'a'=>1, 'b'=>2, 'c'=>3})
  a,b,c = args.values_at('a', 'b', 'c')

  puts a,b,c

  a,b,c = args.values

  puts a,b,c
end

def foo2(args = {:a=>1, :b=>2, :c=>3})
  a,b,c = args.values

  puts a,b,c
end

foo outputs:
1
2
3
1
2
3

foo2 outputs:
2
3
1


csn

-- 
Posted via http://www.ruby-forum.com/.