Bugs item #8537, was opened at 2007-02-09 17:23 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=8537&group_id=426 Category: Core Group: 1.8.2 Status: Open Resolution: None Priority: 3 Submitted By: Gregor Cramer (gcramer) Assigned to: Nobody (None) Summary: Module:constants returns unexpected result Initial Comment: Module:constants returns unexpected results; e.g. module A C = 1 module B p A::B::constants end end returns an empty array. This does not fit the documentation: call-seq: mod.constants => array Returns an array of the names of the constants accessible in <i>mod</i>. This includes the names of constants in any included modules (example at start of section). In module A::B the constants A, B, and C are accessible and therefore should be included in the result!? ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=8537&group_id=426