Method: Method#to_proc
- Defined in:
- proc.c
#to_proc ⇒ Proc
Returns a Proc
object corresponding to this method.
|
# 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)
* }
|