How to call Java API from Ruby 1.8 or 1.9
问题 I've this JRuby working code (stolen from Keith's Blog), which wraps the SAXON xslt processor API. Now, I wonder whether I can and how can I wrap the same API in Ruby framework? Please tell me if this question is non-sense or if it can be improved in some way. This is the java doc reference for the wanted API. And this is the JRuby code I'm using: require 'java' module JXslt include_class "javax.xml.transform.TransformerFactory" include_class "javax.xml.transform.Transformer" include_class