From: wys@... (Clemens Wyss) Date: 2001-02-08T21:10:02+09:00 Subject: [ruby-talk:10567] Re: Giving a Proc utility methods? Aleksi Niemel wrote in : >I meant it seems the proc has hard times to refer to itSelf at >runtime. I'd guess this is actually pretty common operation (although >I haven't used it ever) because it's pretty common for normal methods to >refer the instance object with self. > ...again, "self" in the block-code is NOT the Proc object but the "main context" of the program. And "def meth.fail(msg)" does not extend (the context of) "self" but the Proc object. Your solution does look closer to Ben's but object-wise it isn't. I don't see real need for accessing the Proc object. Clemens