Package org.sikuli.script.runnerSupport
Class JRubySupport
java.lang.Object
org.sikuli.script.runnerSupport.JRubySupport
- All Implemented Interfaces:
IRunnerSupport
public class JRubySupport extends Object implements IRunnerSupport
-
Method Summary
Modifier and Type Method Description voidexecuteScriptHeader(List<String> codeBefore, String... paths)voidfillSysArgv(File filename, String[] argv)intfindErrorSource(Throwable thr, String filename, int headerOffset)static JRubySupportget()List<String>interpreterGetLoadPaths()voidinterpreterInitialization()booleaninterpreterRedirect(PrintStream stdout, PrintStream stderr)ObjectinterpreterRunScriptletFile(Reader reader, String filename)ObjectinterpreterRunScriptletString(String script)voidinterpreterTerminate()static booleanisSupported()voidlog(int level, String message, Object... args)booleanrunObserveCallback(Object[] args)Run callback for observers.
-
Method Details
-
log
-
get
-
isSupported
public static boolean isSupported() -
interpreterInitialization
public void interpreterInitialization() -
interpreterRedirect
-
interpreterGetLoadPaths
-
executeScriptHeader
-
fillSysArgv
-
interpreterRunScriptletString
-
interpreterRunScriptletFile
- Throws:
Throwable
-
interpreterTerminate
public void interpreterTerminate() -
findErrorSource
-
runObserveCallback
Description copied from interface:IRunnerSupportRun callback for observers.- Specified by:
runObserveCallbackin interfaceIRunnerSupport- Parameters:
args- is array for two elements. First is a callback object. Second is an event.- Returns:
- true if the callback was ran correctly. False in other cases.
-