Understanding Ruby Blocks, Procs and Lambdas - Robert Sosinski - 0 views
-
Ruby has four different ways of using closures
-
The code block interacts with a variable
-
collect! will use the code provided within the block on each element in the array
- ...10 more annotations...