From: 7stud -- Date: 2009-08-22T03:17:14+09:00 Subject: Re: Output Manipulation Ishan Nag wrote: > Thanks stud7 for the reply but what i was looking for was row column > representation of "Modules:" & "Classes" & "Exception classes"...i > would be glad if you could help with that How about: modules = ["Modules", "A", "B", "C"] classes = ["Classes", "X", "Y", "Z"] exceptions = ["Exceptions", "E1", "E2", "E3"] names = [] names << modules << classes << exceptions results = names.transpose results.each do |arr| arr.each do |name| print name.ljust(20) end puts end --output:-- Modules Classes Exceptions A X E1 B Y E2 C Z E3 -- Posted via http://www.ruby-forum.com/.