Есть ли более эффективный способ сделать это?
items = [:one, :two, {three: 3}, {four: 4}, :five, :six] # => [:one, :two, {:three=>3}, {:four=>4}, :five, :six]
symbols = items.select { |n| n.class == Symbol } # => [:one, :two, :five, :six]
params = items.select { |n| n.class == Hash }.reduce(:merge) # => {:three=>3, :four=>4}
symbols << params # => [:one, :two, :five, :six, {:three=>3, :four=>4}]