Created
June 10, 2009 01:18
-
-
Save Serabe/126949 to your computer and use it in GitHub Desktop.
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
| #$ cat ruby_class.rb | |
| class MyRubyClass | |
| extends_class "MyJavaClass" | |
| end |
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
| //$ javap MyRubyClass | |
| //Compiled from "ruby_class.rb" | |
| public class MyRubyClass extends MyJavaClass{ | |
| static {}; | |
| public MyRubyClass(); | |
| } |
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
| //$ cat MyJavaClass.java | |
| class MyJavaClass{ | |
| MyRubyClass myRubyObject; | |
| } |
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
| //$ javap MyJavaClass | |
| //Compiled from "MyJavaClass.java" | |
| class MyJavaClass extends java.lang.Object{ | |
| MyRubyClass myRubyObject; | |
| MyJavaClass(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment