Sections
blocks
1 thread tagged with this topic
Threads tagged blocks
- ✓
What is a block in Ruby, and what does yield do?
A block is a chunk of code you hand to a method, written between do and end or between braces. Inside the method, the word yield runs that chunk, once for each...
0replies