irb(main):005:0> a, b = {:a => 1, :b => 2}.values_at(:a, :b) => [1, 2]
irb(main):006:0> a, b = (h = {:a => 1, :b => 2}).values_at(*h.keys) => [1, 2]