From: Brian Candler Date: 2011-04-23T20:11:36+09:00 Subject: Re: Reversing a string without using array, classes and reverse function I'm surprised nobody has yet shown using 'inject', as for once it makes sense here. a = "foobar" puts a.each_char.inject("") { |str,chr| chr+str } # raboof -- Posted via http://www.ruby-forum.com/.