>_
new2coding
browse
topics
about
random
languages/
Syntax, runtimes, compilers, JITs, type systems and memory management.
search
All
AI
Building software
Computers
Computer science
Databases
Infrastructure
Mobile
Networks
Programming languages
Security
The web
Tools
1 result
languages/ruby-blocks-how-a-method-borrows-a-piece-of-your-code-and-runs-it-with.md
Ruby blocks: how a method borrows a piece of your code and runs it with yield
Ruby code is full of curly-brace chunks like `list.each { |x| ... }`. Who runs that chunk, and when? This article follows a block from the…
4 min read · 31 Oct