Skip to content

Instantly share code, notes, and snippets.

@joshk
Created January 29, 2011 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshk/801973 to your computer and use it in GitHub Desktop.
Save joshk/801973 to your computer and use it in GitHub Desktop.
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