call(*args)
public
Invokes the meth with the specified arguments, returning the
method’s return value.
m = 12.method("+")
m.call(3)
m.call(20)
Show source
VALUE
rb_method_call(int argc, VALUE *argv, VALUE method)
{
VALUE proc = rb_block_given_p() ? rb_block_proc() : Qnil;
return rb_method_call_with_block(argc, argv, method, proc);
}