[#927] UnboundMethod#to_proc — Dave Thomas <dave@...>

I'm wondering what I can do with a Proc generated by

17 messages 2003/04/06

Re: UnboundMethod#to_proc

From: matz@... (Yukihiro Matsumoto)
Date: 2003-04-06 14:32:12 UTC
List: ruby-core #930
Hi,

In message "Re: UnboundMethod#to_proc"
    on 03/04/06, "Chris Pine" <nemo@hellotree.com> writes:

|----- Original Message -----
|so, bind UnboundMethod first, then call to_proc.
|----------------------------
|
|Then does it make any sense for UnboundMethod#to_proc to be defined?

Orthogonality, I may say.  There's no strong reason behind it, just a
matter of place to put unbound check.  Besides, to tell the truth,
Dave's question made me feel just like you, so that I will add a check
in UnboundMethod#to_proc.

							matz.

In This Thread