An in-depth tutorial on Ruby blocks
Using Blocks in Ruby is a free excerpt from the Head First Ruby book. It demonstrates what blocks are and why they exist, then walks you step-by-step (with extensive diagrams) through the flow of control in a program that uses blocks. If you’ve struggled with blocks in the past, this is the best tutorial out there!
Post a comment