Skip to content

Instantly share code, notes, and snippets.

@headius
Created December 11, 2014 20:24
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 headius/6fbfb0d089df60819d9b to your computer and use it in GitHub Desktop.
Save headius/6fbfb0d089df60819d9b to your computer and use it in GitHub Desktop.
~/projects/jruby-1.7 $ jruby -rjruby/core_ext -e 'class Foo; end; cls = Foo.become_java!; obj = cls.newInstance; p obj; p obj.class; p obj.class.java_class'
#<Foo:0x5afa04c>
Foo
class rubyobj.Foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment