From: Dean Wampler Date: 2008-07-27T23:50:08+09:00 Subject: Re: Is there a simple way to find a method definition? ------=_Part_8197_22614829.1217170225944 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Does anyone know of a programmatic way to find the definition? I was looking for this the other day. If a type responds to a method that it inherits or gets through inclusion of a module, method_defined? returns true. Is there another method that only returns true for the actual "definer"? I suppose you could iterate through the ancestors recursively and find the highest-level ancestor where method_defined? is true. Thanks, Dean Wampler ------=_Part_8197_22614829.1217170225944--