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.

D436756dba6b642937ce602aef83e4e1?s=128

Jonathan Cairns

March 21, 2013
Tweet