Created
March 16, 2009 19:51
-
-
Save Serabe/80038 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
require 'rbconfig' | |
require 'java' | |
require '../../tool/signature' | |
class MyRubyClass | |
def helloWorld | |
puts "Hello from Ruby" | |
end | |
def goodbyeWorld(a,b="JRuby") | |
puts b+a | |
end | |
signature :helloWorld, [] => Java::void | |
signature :goodbyeWorld, [java.lang.String,java.lang.String.optional] => Java::void | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment