Skip to content

Instantly share code, notes, and snippets.

@banister
Created January 26, 2012 03:30
Show Gist options
  • Save banister/1680784 to your computer and use it in GitHub Desktop.
Save banister/1680784 to your computer and use it in GitHub Desktop.
binding of caller in JRuby
whitequark
headius: I just opened javadoc of jruby and tried to poke some classes through require 'java'
headius
ok
headius
whitequark: require 'jruby'; runtime = JRuby.runtime; context = runtime.current_context
headius
maybe you can poke at it from there
whitequark
aha! I found a perversed way
NinoScript has joined ([email protected])
whitequark
Thread.current.to_java.getContext.currentBinding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment