Blocks, procs and lambdas

Blocks, procs and lambdas

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.


Jonathan Cairns

March 21, 2013