| Modifier and Type | Field and Description |
|---|---|
static long |
RELOAD_INTERVAL |
| Modifier and Type | Method and Description |
|---|---|
Object |
call(Object rubyObject,
String methodName)
Call a method on a Ruby object.
|
Object |
call(Object rubyObject,
String methodName,
Class<? extends Object> returnType)
Call a method on a Ruby object.
|
Object |
call(Object rubyObject,
String methodName,
Class<? extends Object> returnType,
Object... params)
Call a method on a Ruby object passing some arguments to the ruby side.
|
Object |
call(Object rubyObject,
String methodName,
Object... params)
Call a method on a Ruby object passing some arguments to the ruby side.
|
String |
callAction(Object rubyObject,
String methodName) |
void |
close() |
org.jruby.RubyObject |
eval(String code) |
static JRubyInterpreter |
getInstance() |
org.jruby.Ruby |
getRuntime() |
List<String> |
getSetters(Object rubyObject)
Return a list of all setters for this ruby object.
|
static boolean |
isInitialized() |
void |
loadFileFromClasspath(String filename) |
void |
require(String file) |
boolean |
respondTo(Object rubyObject,
String methodName)
Call Ruby's respond_to? to find out if the Ruby object responds to a method.
|
void |
run() |
Object |
set(Object rubyObject,
String propName,
Object value)
Call a setter for this property.
|
public void close()
public List<String> getSetters(Object rubyObject)
rubyObject - the ruby object from where to get the setterspublic void require(String file)
public org.jruby.RubyObject eval(String code)
public Object call(Object rubyObject, String methodName)
rubyObject - The ruby object in the Java sidemethodName - The name of the method to callpublic Object call(Object rubyObject, String methodName, Class<? extends Object> returnType)
rubyObject - The ruby object in the Java sidemethodName - The name of the method to callreturnType - The return type for the return value of the methodpublic Object call(Object rubyObject, String methodName, Object... params)
rubyObject - The ruby object in the Java sidemethodName - The name of the method to callparams - The arguments to pass to the methodpublic Object call(Object rubyObject, String methodName, Class<? extends Object> returnType, Object... params)
rubyObject - The ruby object in the Java sidemethodName - The name of the method to callreturnType - The return type for the return value of the methodparams - The arguments to pass to the methodpublic Object set(Object rubyObject, String propName, Object value)
rubyObject - The ruby object in the Java sidepropName - The name of the property to setvalue - The value of the propertypublic boolean respondTo(Object rubyObject, String methodName)
rubyObject - The ruby object in the Java sidemethodName - The method namepublic static boolean isInitialized()
public static JRubyInterpreter getInstance()
public void loadFileFromClasspath(String filename) throws IOException
IOExceptionpublic org.jruby.Ruby getRuntime()
Copyright © 2015. All Rights Reserved.