ruby filter hash based on values code example Example: ruby hash pick > { one: 1, two: 2, three: 3 }.slice(:one, :two) => {:one=>1, :two=>2}