Skip to content

Instantly share code, notes, and snippets.

@feymartynov
Created December 5, 2014 07:34
Show Gist options
  • Save feymartynov/ff6d8ca61e7355104ff0 to your computer and use it in GitHub Desktop.
Save feymartynov/ff6d8ca61e7355104ff0 to your computer and use it in GitHub Desktop.
java constructor in jruby
class MyClass
java_signature 'MyClass MyClass(java.lang.String someParameter)'
def initialize(some_paramter)
# …
end
become_java!(false)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment