Syntax for accessing constant in java static class

I am new to using java objects in jruby and I could use some help on

I have a jar file containing a class that has a static class with some
constants in it
(net.sf.saxon.s9api.Serializer.Property from saxon9-s9api.jar).

The Serializer class has a static class (Property) that has a number of
constants in it,
with names like ‘METHOD’ and ‘INDENT’. See

In java, the constants are referenced as for instance
I cannot find the jruby construct to access them.

I appreciate your help, Ruud

View this message in context:
Sent from the JRuby - User mailing list archive at

Serializer::Property::METHOD should work…


Am 01.11.2010 um 15:19 schrieb ruud144:

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