RubyFlow The Ruby and Rails community linklog

Access to Modified Closure in Ruby

A closer look at blocks in Ruby and how they can sometimes produce unexpected results.

Comments

The results are not “odd”. Unexpected maybe if you don’t know how to properly use closures in ruby.

Touche, I’ve updated the terminology. The post is supposed to help folks understand it.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in