RubyFlow The Ruby and Rails community linklog

A Closure Is Not Always A Closure In Ruby

When using instance_eval in Ruby, the block will behave in a distinctly unclosure-like manner, here we dig deeper to see what happens and try to roll our own instance_eval that allows us to retain the closure semantics we have come to expect from Ruby blocks.

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