[#11439] comments needed for Random class — "NAKAMURA, Hiroshi" <nakahiro@...>

-----BEGIN PGP SIGNED MESSAGE-----

15 messages 2007/06/12

[#11450] Re: new method dispatch rule (matz' proposal) — David Flanagan <david@...>

This is a late response to the very long thread that started back in

17 messages 2007/06/13

[#11482] Ruby Changes Its Mind About Non-Word Characters — James Edward Gray II <james@...>

Does this look like a bug to anyone else?

10 messages 2007/06/16

[#11505] Question about the patchlevel release cycle — Sylvain Joyeux <sylvain.joyeux@...4x.org>

1.8.6 thread support was broken in bad ways. It stayed for three months

20 messages 2007/06/20
[#11512] Re: Question about the patchlevel release cycle — Urabe Shyouhei <shyouhei@...> 2007/06/20

Hi, I'm the 1.8.6 branch manager.

[#11543] Re: Apple reportedly to ship with ruby 1.8.6-p36 unless informed what to patch — James Edward Gray II <james@...>

On Jun 27, 2007, at 4:47 PM, Bill Kelly wrote:

10 messages 2007/06/27

Re: Method introspection ?

From: mmiller@...
Date: 2007-06-05 21:46:26 UTC
List: ruby-core #11414
On Wed, Jun 06, 2007 at 06:14:09AM +0900, Jonas Pfenniger wrote:
> Hello,
> 
> is it possible, by introspection, to distinguish between inherited and
> overridden methods ?
> 
> If you get them with the "method" method, inherited and overridden methods
> don't show the same "inspect" output. That's the only indication that I have
> found so far.

I've also wondered if there is an elegant way to do this.  As you
mentioned, there are hackish ways, such as this one:

def derived_implementor?(parent, method_name)
   (self.method(method_name).to_s.match(/#{parent.to_s}[^:]/)) ?  false : true
end

Indeed, this is an utter hack, so I too would be curious if others have
a better way of doing this.

Matt

In This Thread