From: Xavier Noria Date: 2012-03-22T00:43:53+09:00 Subject: Re: What’s the best way to check if a feature/class has been loaded? --047d7b2edff181b55d04bbc2a8ba Content-Type: text/plain; charset=UTF-8 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. --047d7b2edff181b55d04bbc2a8ba Content-Type: text/html; charset=UTF-8 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.
--047d7b2edff181b55d04bbc2a8ba--