On Tue, 05 Sep 2000 14:31:45 +0900, foo wrote: > > > How can I list methods and variables in a loaded module?. > > one simplistic way is: > > ObjectSpace.each_object{ |o| > > if o.instance_of?(Module) and o.name == "Enumerable" > > puts o.methods.join ", " > > end > > } > > what's the advantage over the following? > > p Enumerable.methods To be precise: zilch. (I should remember this for the Obfuscated Ruby Contest(tm) ;) Michel