First page Back Continue Last page Overview Graphics
Proc Objects and Closures
When we pass a code block as a parameter, the receiving method converts the block to a Proc object.
The Proc object contains not only the code statements, but also the bindings (state) too!
The combination of statements and environment form a closure.