@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) { if ( args.length != 0 ) { throw JavaPackage.packageMethodArgumentMismatch(context.runtime, parentPackage, name, args.length); } return call(context, self, clazz, name); }
@Override public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) { if ( args.length != 0 ) { throw JavaPackage.packageMethodArgumentMismatch(context.runtime, parentPackage, name, args.length); } return call(context, self, clazz, name); }
@JRubyMethod(name = "method_missing", rest = true, visibility = Visibility.PRIVATE) public IRubyObject method_missing(ThreadContext context, final IRubyObject[] args) { if (args.length > 1) { throw packageMethodArgumentMismatch(context.runtime, this, args[0].toString(), args.length - 1); } return method_missing(context, args[0]); }
@JRubyMethod(name = "method_missing", rest = true, visibility = Visibility.PRIVATE) public IRubyObject method_missing(ThreadContext context, final IRubyObject[] args) { if (args.length > 1) { throw packageMethodArgumentMismatch(context.runtime, this, args[0].toString(), args.length - 1); } return method_missing(context, args[0]); }