End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Method#[]
[](*args)
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);
}
Alias of #call
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