Created
October 20, 2014 18:50
-
-
Save mvz/3ed0f8c0cea93f87527f to your computer and use it in GitHub Desktop.
JRuby binding issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class C | |
def block_param &blk | |
p blk.call | |
@foo = 2 | |
p instance_eval &blk | |
p blk.call | |
end | |
end | |
@foo = 1 | |
c = C.new | |
c.block_param { @foo } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment