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