Examples of include_p()


Examples of org.jruby.RubyArray.include_p()

                new org.jruby.internal.runtime.methods.JavaMethod(implClass, Visibility.PUBLIC) {
                    @Override
                    public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) {
                        Arity.checkArgumentCount(context.getRuntime(), args.length, 1, -1);

                        if (methodNames == null || methodNames.include_p(context, args[0]).isTrue()) {
                            return implBlock.call(context, args);
                        } else {
                            return clazz.getSuperClass().callMethod(context, "method_missing", args, block);
                        }
                    }
View Full Code Here

Examples of org.jruby.RubyArray.include_p()

                new org.jruby.internal.runtime.methods.JavaMethod(implClass, Visibility.PUBLIC) {
                    @Override
                    public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) {
                        Arity.checkArgumentCount(context.runtime, name, args.length, 1, -1);

                        if (methodNames == null || methodNames.include_p(context, args[0]).isTrue()) {
                            return implBlock.call(context, args);
                        } else {
                            return clazz.getSuperClass().callMethod(context, "method_missing", args, block);
                        }
                    }
View Full Code Here

Examples of org.jruby.RubyArray.include_p()

                new org.jruby.internal.runtime.methods.JavaMethod(implClass, Visibility.PUBLIC) {
                    @Override
                    public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) {
                        Arity.checkArgumentCount(context.runtime, name, args.length, 1, -1);

                        if (methodNames == null || methodNames.include_p(context, args[0]).isTrue()) {
                            return implBlock.call(context, args);
                        } else {
                            return clazz.getSuperClass().callMethod(context, "method_missing", args, block);
                        }
                    }
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.