TIL: Ruby Hash#slice

Ruby’s Hash#slice method takes a list of key names and returns another Hash that only has those key/values in it. Any values in the Hash receiver with different keys get dropped.

Neat.