From: Rubist Rohit Date: 2011-04-22T21:17:52+09:00 Subject: Re: Reversing a string without using array, classes and reverse function @Harry, That was excellent. Very little code and fits to my condition of not using arrays as well. Harry Kakueki wrote in post #994483: > On Fri, Apr 22, 2011 at 12:54 PM, Rubist Rohit > > s = "I am a string." > > t = "" > s.each_char{|f| t.insert(0,f)} > p t #> ".gnirts a ma I" > Harry -- Posted via http://www.ruby-forum.com/.