From: ts Date: 2003-05-22T00:03:13+09:00 Subject: Re: module constant access >>>>> "D" == Dan Janowski writes: D> Sure. This makes sense. But why the difference in visibility of the D> constant Trouble? I don't understand, you want to say the difference between Module::const_defined? and Module::constants svg% ri const_defined? -------------------------------------------------- Module#const_defined? mod.const_defined?( aSymbol ) -> true or false ------------------------------------------------------------------------ Returns true if a constant with the given name is defined by mod. Math.const_defined? "PI" #=> true svg% svg% ri Module::constants ------------------------------------------------------ Module::constants Module.constants -> anArray ------------------------------------------------------------------------ Returns an array of the names of all constants defined in the system. This list includes the names of all modules and classes. p Module.constants.sort[1..5] produces: ["ARGV", "ArgumentError", "Array", "Bignum", "Binding"] svg% Guy Decoux