A Closure Is Not Always A Closure In Ruby

A Closure Is Not Always A Closure In Ruby Posted by skorks on March 27, 2013 — 0 comments 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.