How to access Ruby constants in Java


I have a Jruby class in which i have few constants. I want to access
these constants from my Java code. But when i compile the .rb file in to
.java using jrubyc the constants are not declared as public & static.

Is there any modifier like java_signature that i can use in my .rb file?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs