Closing Scope

Just like other language (e.g., Java), Ruby’s closures (called blocks, procedures[footnote]’procs’ if you’re cool.[/footnote] or lambdas) maintain the scope from where they were called.

Oh, and FYI: a closure is just a piece of code that can be passed around[footnote]With access to the variables of the enclosing scope, of course[/footnote].