Created
October 11, 2010 19:36
-
-
Save enebo/621082 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public Variant invoke(final String methodName, final Variant[] variantArgs) { | |
new Thread() { | |
@Override | |
public void run() { | |
ThreadContext context = runtime.getCurrentContext(); | |
int length = variantArgs.length; | |
IRubyObject[] args = new IRubyObject[length]; | |
for (int i = 0; i < length; i++) { | |
args[i] = RubyWIN32OLE.fromVariant(runtime, variantArgs[i]); | |
} | |
target.callMethod(context, methodName, args); | |
} | |
}.start(); | |
return null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment