/** * Variable arity version for compatibility. Not bound to a Ruby method. * @deprecated Use the versions with zero, one, or two args. */ public IRubyObject fetch(ThreadContext context, IRubyObject[] args, Block block) { switch (args.length) { case 1: return fetch(context, args[0], block); case 2: return fetch(context, args[0], args[1], block); default: Arity.raiseArgumentError(getRuntime(), args.length, 1, 2); return null; // not reached } }
/** * Variable arity version for compatibility. Not bound to a Ruby method. * @deprecated Use the versions with zero, one, or two args. */ public IRubyObject fetch(ThreadContext context, IRubyObject[] args, Block block) { switch (args.length) { case 1: return fetch(context, args[0], block); case 2: return fetch(context, args[0], args[1], block); default: Arity.raiseArgumentError(getRuntime(), args.length, 1, 2); return null; // not reached } }
/** * Variable arity version for compatibility. Not bound to a Ruby method. * @deprecated Use the versions with zero, one, or two args. */ public IRubyObject fetch(ThreadContext context, IRubyObject[] args, Block block) { switch (args.length) { case 1: return fetch(context, args[0], block); case 2: return fetch(context, args[0], args[1], block); default: Arity.raiseArgumentError(getRuntime(), args.length, 1, 2); return null; // not reached } }
/** * Variable arity version for compatibility. Not bound to a Ruby method. * @deprecated Use the versions with zero, one, or two args. */ public IRubyObject fetch(ThreadContext context, IRubyObject[] args, Block block) { switch (args.length) { case 1: return fetch(context, args[0], block); case 2: return fetch(context, args[0], args[1], block); default: Arity.raiseArgumentError(getRuntime(), args.length, 1, 2); return null; // not reached } }