--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&#39;t work in 1.8.<div><br></div><div>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.</div>



--047d7b2edff181b55d04bbc2a8ba--