« * K @thehale.dev

Joseph Hale @thehale.dev

2026-06-02 00:18 UTC

Hash.extract! is my latest fun discovery in Rails' collection of Ruby extensions. It returns a new hash of the keys you name, while simultaneously removing those keys from the original hash. It's also safe to use when the named key doesn't appear in the original hash.

1 picture (not shown on this phone)

1 likes, 0 reposts, 1 replies

3 Next post4 More from @thehale.devBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup