Skip to content

Instantly share code, notes, and snippets.

@Serabe
Created March 16, 2009 19:51
Show Gist options
  • Save Serabe/80038 to your computer and use it in GitHub Desktop.
Save Serabe/80038 to your computer and use it in GitHub Desktop.
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