public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) { switch (args.length) { case 2: return call(context, self, clazz, name, args[0], args[1], block); case 3: return call(context, self, clazz, name, args[0], args[1], args[2], block); default: return raiseArgumentError(this, context, name, args.length, 2, 3); } } }
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) { switch (args.length) { case 2: return call(context, self, clazz, name, args[0], args[1], block); case 3: return call(context, self, clazz, name, args[0], args[1], args[2], block); default: return raiseArgumentError(this, context, name, args.length, 2, 3); } } }
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) { switch (args.length) { case 2: return call(context, self, clazz, name, args[0], args[1], block); case 3: return call(context, self, clazz, name, args[0], args[1], args[2], block); default: return raiseArgumentError(this, context, name, args.length, 2, 3); } } }
public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block) { switch (args.length) { case 2: return call(context, self, clazz, name, args[0], args[1], block); case 3: return call(context, self, clazz, name, args[0], args[1], args[2], block); default: return raiseArgumentError(this, context, name, args.length, 2, 3); } } }