Til Ruby Hash Slice May 23, 2025 • Michael 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.