From: Sebastian Hungerecker Date: 2008-09-03T17:28:36+09:00 Subject: Re: How can I prevent include one module multi-times? Roger Pack wrote: > Zhao Yi wrote: > > I am looking for a method to check whether this module has been > > included. Does Ruby have this feature? > > Might try parsing Object.constants for the module name. Why? That only tells you whether that module exists (and it only tells you that when the module is in the top-level namespace). It doesn't tell you whether that module has been included into anything. -- Jabber: sepp2k@jabber.org ICQ: 205544826