Package org.jruby

Examples of org.jruby.TruffleBridge


        this.callTarget = callTarget;
    }

    @Override
    public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) {
        final TruffleBridge bridge = context.getRuntime().getTruffleBridge();

        final Object[] truffleArgs = new Object[args.length];

        for (int n = 0; n < args.length; n++) {
            truffleArgs[n] = bridge.toTruffle(args[n]);
        }

        return bridge.toJRuby(callTarget.call(RubyArguments.pack(null, null, bridge.toTruffle(self), null, truffleArgs)));
    }
View Full Code Here

TOP

Related Classes of org.jruby.TruffleBridge

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.