Speaker Deck

Blocks, procs and lambdas

by Jonathan Cairns

Published March 21, 2013 in Technology

An introduction to blocks in Ruby. It stars by looking at the very basics of how to pass and run blocks, arguments, return values and the Proc class. It ends with some more advanced usage of blocks, and some weird tricks that you'll probably never use.