From: Nikolai Weibull Date: 2012-03-22T04:17:02+09:00 Subject: Re: What’s the best way to check if a feature/class has been loaded? On Wed, Mar 21, 2012 at 16:43, Xavier Noria wrote: > Ah, that won't work in 1.8. > > In 1.8 you can rely on the fact that const_defined? does not look into the > ancestors. I guess a portable solution will need to have code that depends > on the Ruby version. Or simply use my #feature? implementation. But again, I would like to use something that I don’t have to copy&paste or require into every project where I need this function. Relying on ActiveSupport is definitely not an option.