D'oh

MyClass.parent

(sigh)

On Wed, Oct 22, 2008 at 11:22 AM, Francis Fish <[EMAIL PROTECTED]>wrote:

> What does MyClass.class.included_modules say? I think you're at the wrong
> level.
>
>
> On Wed, Oct 22, 2008 at 11:09 AM, doug livesey <[EMAIL PROTECTED]> wrote:
>
>> Hi.If you extend a class like this:
>>
>> MyClass.extend( MyModule )
>>
>> or this:
>>
>> class MyClass
>>   class << self
>>     include MyModule
>>   end
>> end
>>
>> it won't show up in a call to MyClass.included_modules().
>>
>> Does anyone know a simple way to see if a class has been extended by a
>> given module?
>> (Other than testing the class for the methods in the module.)
>> Cheers,
>>    Doug.
>>
>> >>
>>
>
>
> --
> Thanks and regards,
>
> Francis Fish
>



-- 
Thanks and regards,

Francis Fish

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"NWRUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/nwrug-members?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to