End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Proc#inspect
inspect
proc.c
View on GitHub ↗
static VALUE
proc_to_s(VALUE self)
{
const rb_proc_t *proc;
GetProcPtr(self, proc);
return rb_block_to_s(self, &proc->block, proc->is_lambda ? " (lambda)" : NULL);
}
Alias of #to_s
Returns the unique identifier for this proc, along with an indication of where the proc was defined.