Skip to content

Instantly share code, notes, and snippets.

@Serabe
Created May 11, 2009 19:55
Show Gist options
  • Select an option

  • Save Serabe/110149 to your computer and use it in GitHub Desktop.

Select an option

Save Serabe/110149 to your computer and use it in GitHub Desktop.
require 'rbconfig'
require 'java'
require '../src/compilable'
class MyRubyClass
extend Compilable
def helloWorld
puts "Hello from Ruby"
end
def goodbyeWorld(a)
puts a
end
java_name "MyObject"
signature :helloWorld, [] => Java::void
signature :goodbyeWorld, [java.lang.String] => Java::void
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment