Creates a newProc object, bound to the current context. Proc::new
may be called without a block only within a method with an attached block,
in which case that block is converted to the Proc
object.
static VALUE
rb_proc_s_new(int argc, VALUE *argv, VALUE klass)
{
VALUE block = proc_new(klass, FALSE);
rb_obj_call_init(block, argc, argv);
return block;
}