End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Kernel#proc
proc { |...| block } → a_proc
proc.c
View on GitHub ↗
static VALUE
f_proc(VALUE _)
{
return proc_new(rb_cProc, FALSE, TRUE);
}
Equivalent to Proc.new.