to_proc()
public
Part of the protocol for converting objects to Proc objects. Instances of class Proc simply return themselves.
Show source
/*
* call-seq:
* prc.to_proc -> prc
*
* Part of the protocol for converting objects to <code>Proc</code>
* objects. Instances of class <code>Proc</code> simply return
* themselves.
*/
static VALUE
proc_to_self(self)
VALUE self;
{
return self;
}