Created
January 29, 2011 16:35
-
-
Save joshk/801973 to your computer and use it in GitHub Desktop.
This file contains 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
def root_binding | |
binding | |
end | |
module Blah | |
def self.root_binding | |
@root_binding | |
end | |
def self.root_binding=(b) | |
@root_binding = b | |
end | |
end | |
Blah.root_binding = lambda { binding } | |
a = 1 | |
eval('puts a', root_binding) | |
eval('puts a', Blah.root_binding) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment