Package org.jruby

Examples of org.jruby.RubyMethod.call()


                @Override
                public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) {
                    if (self.callMethod(context, "__getobj__") != object) {
                        throw context.getRuntime().newNameError("object changed", "object changed");
                    }
                    return method.call(context, args, block);
                }
            }, self);
        }

        @JRubyMethod(name = "respond_to?")
View Full Code Here


            @Override
            public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) {
                if (self.callMethod(context, "__getobj__") != object) {
                    throw context.runtime.newNameError("object changed", "object changed");
                }
                return method.call(context, args, block);
            }
        }, self);
    }

    @JRubyMethod(name = "respond_to?")
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.