Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (10 sloc) 0.385 kB
#reverse without reverse String method. July 07 2012.
class String
def reverse_without_reverse
holding_array = []
backwards_string = ''
each_char {|letter| holding_array << letter}
holding_array.length.times {|letters| backwards_string << holding_array.pop}
return backwards_string
end #end of reverse without reverse method.
end #close the string class.
Jump to Line
Something went wrong with that request. Please try again.