Jrubyc and ruby gems

All,

I’m sure this has been asked, but what about rubygems and compiling a
class to be used by java. I have 2 ruby classes. 1 uses sequel to
represent a data model. The other uses nokogiri and lorax to help in
the merging of 2 XML documents. Can I compile these and expose them to
java using java_signature and will the gems be compiled too or I’m I
missing something? Do the gems get compiled? Actually the whole gems
thing and compiling has me a little confused.

Thanks,

GregD