Method: Kernel#proc

Defined in:
proc.c

#proc {|...| ... } ⇒ Proc

Equivalent to Proc.new.

Yields:

  • (...)

Returns:



850
851
852
853
854
# File 'proc.c', line 850

static VALUE
f_proc(VALUE _)
{
    return proc_new(rb_cProc, FALSE);
}