Method: Kernel#proc

Defined in:
proc.c

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

Equivalent to Proc.new.

Yields:

  • (...)

Returns:

[View source]

838
839
840
841
842
# File 'proc.c', line 838

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