instance method
Proc#to_s
() -> ::String
prc.to_s → string
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);
}
Returns the unique identifier for this proc, along with an indication of where the proc was defined.