From: Chris Roos Date: 2006-09-21T02:06:56+09:00 Subject: const_defined? not quite in sync with const_get ?? Assuming the following snippet, I'd expect Foo::const_defined?(:Bar) to be routed via Foo::const_missing. Instead it resolves to top-level Bar. Can someone explain why please? --code-- class Bar end module Foo def self.const_missing(konst) puts "missing konst #{konst}" end end Foo::Bar #=> missing konst Bar # Unsurprising behaviour p Foo::const_defined?(:Bar) false # Unsurprising behaviour p Foo::const_get(:Bar) #=> Bar # Surprising behaviour --/code-- Cheers, Chris