Method: Method#to_proc

Defined in:
proc.c

#to_procProc

Returns a Proc object corresponding to this method.

Returns:



# File 'proc.c'

static VALUE
method_proc(VALUE method)
{
    VALUE procval;
    rb_proc_t *proc;
    /*
* class Method
*   def to_proc
*     proc{|*args|
*       self.call(*args)
*     }