Ishan Nag wrote:
> puts "\nMODULE : "
> Module.constants.sort.select { |x| eval(x.to_s).instance_of? Module }
> puts"\nCLASSES : "
> however i want the output in row column form...please help

print "\nMODULE : "
print Module.constants.sort.select { |x| eval(x.to_s).instance_of? 
Module }[1, 20].join(", ")
puts"\nCLASSES : "

-- 
Posted via http://www.ruby-forum.com/.