You might like my other post too

https://tech.stonecharioteer.com/posts/2025/ruby-blocks/