@JRubyMethod(rest = true) public IRubyObject invoke_static(IRubyObject[] args) { checkArity(args.length); Object[] arguments = new Object[args.length]; System.arraycopy(args, 0, arguments, 0, arguments.length); convertArguments(args, arguments, 0); return invokeWithExceptionHandling(method, null, arguments); }
@JRubyMethod(rest = true) public IRubyObject invoke_static(IRubyObject[] args) { checkArity(args.length); Object[] arguments = new Object[args.length]; System.arraycopy(args, 0, arguments, 0, arguments.length); convertArguments(args, arguments, 0); return invokeWithExceptionHandling(method, null, arguments); }
@JRubyMethod(rest = true) public IRubyObject invoke_static(ThreadContext context, IRubyObject[] args) { checkArity(args.length); final Object[] arguments = convertArguments(args, 0); return invokeWithExceptionHandling(context, method, null, arguments); }
@JRubyMethod(rest = true) public IRubyObject invoke_static(ThreadContext context, IRubyObject[] args) { checkArity(args.length); final Object[] arguments = convertArguments(args, 0); return invokeWithExceptionHandling(context, method, null, arguments); }
checkArity(args.length - 1); Object[] arguments = new Object[args.length - 1]; convertArguments(args, arguments, 1);
checkArity(args.length - 1); Object[] arguments = new Object[args.length - 1]; convertArguments(args, arguments, 1);
final Object[] arguments = convertArguments(args, 1);
final Object[] arguments = convertArguments(args, 1);