Package org.asciidoctor.jruby.internal
Class RubyUtils
java.lang.Object
org.asciidoctor.jruby.internal.RubyUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidloadRubyClass(org.jruby.Ruby rubyRuntime, InputStream rubyClassDefinition) static voidrequireLibrary(org.jruby.Ruby rubyRuntime, String require) static <T> TrubyToJava(org.jruby.Ruby runtime, org.jruby.runtime.builtin.IRubyObject rubyObject, Class<T> returnType) static final voidsetGlobalVariable(org.jruby.Ruby rubyRuntime, String variableName, Object variableValue) static org.jruby.RubyClasstoRubyClass(org.jruby.Ruby rubyRuntime, Class<?> rubyClass) static org.jruby.RubySymbol
-
Constructor Details
-
RubyUtils
public RubyUtils()
-
-
Method Details
-
rubyToJava
public static <T> T rubyToJava(org.jruby.Ruby runtime, org.jruby.runtime.builtin.IRubyObject rubyObject, Class<T> returnType) -
toSymbol
-
toRubyClass
-
requireLibrary
-
loadRubyClass
-
setGlobalVariable
-