Hash#slice and Hash#except
Because I can never remember this…
2.1.2 :005 > {:dave => :terry, :peanuts => 1, :pickles => :eleventy_two}.slice(:dave, :peanuts)
=> {:dave=>:terry, :peanuts=>1}
And it’s nemesis
2.1.2 :006 > {:dave => :terry, :peanuts => 1, :pickles => :eleventy_two}.except(:dave, :peanuts)
=> {:pickles=>:eleventy_two}