Examples of RubyBasicObject


Examples of org.jruby.truffle.runtime.core.RubyBasicObject

        final RubyContext context = getContext();

        try {
            final Object receiverObject = receiver.execute(frame);
            final RubyBasicObject receiverRubyObject = context.getCoreLibrary().box(receiverObject);

            final ObjectLayout layout = receiverRubyObject.getObjectLayout();
            final StorageLocation storageLocation = layout.findStorageLocation(readNode.getName());

            if (storageLocation.isSet(receiverRubyObject)) {
                return context.makeString("instance-variable");
            } else {
View Full Code Here

Examples of org.jruby.truffle.runtime.core.RubyBasicObject

    }

    public static Object send(RubyContext context, Object object, String methodName, RubyProc block, Object... arguments) {
        CompilerAsserts.neverPartOfCompilation();

        final RubyBasicObject rubyObject = context.getCoreLibrary().box(object);

        final RubyMethod method = ModuleOperations.lookupMethod(rubyObject.getMetaClass(), methodName);

        if (method == null) {
            return null;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.