Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Method#call
meth.call(args, ...) → obj
proc.c
View on GitHub ↗
static VALUE
rb_method_call_pass_called_kw(int argc, const VALUE *argv, VALUE method)
{
return rb_method_call_kw(argc, argv, method, RB_PASS_CALLED_KEYWORDS);
}
Invokes the meth with the specified arguments, returning the method’s return value.
Example
m = 12.method("+") m.call(3) #=> 15 m.call(20) #=> 32