Access to Modified Closure in Ruby
A closer look at blocks in Ruby and how they can sometimes produce unexpected results.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
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