Hey,
I'm writing a JRubyMixin, similar to the JavaScriptMixin that delegates
calls to Rhino, but am having some problems. What I want to do is invoke
this Ruby script:
def say
print "Foo"
end
using this code:
Vector names = new Vector();
Vector params = new Vector();
Object value = bsfManager.apply( "ruby", "say", 0, 0, <get script code>,
names, params);
but all I get is:
org.jruby.exceptions.RaiseException
include Java
import java.lang.System
def say
print "Foo"
end
:1: undefined local variable or method `say' for main:Object (NameError)
from :1
...internal jruby stack elided...
...internal jruby stack elided...
---
Anyone with JRuby experience who have any idea what I am doing wrong? It
seems like a pretty straightforward thing to do, but I haven't found a
single example on the net that shows how to invoke a subroutine.
/Rickard
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev