Skip to content

Instantly share code, notes, and snippets.

@kenmazaika
Created August 7, 2015 21:13
Show Gist options
  • Save kenmazaika/099067a6f5b577038434 to your computer and use it in GitHub Desktop.
Save kenmazaika/099067a6f5b577038434 to your computer and use it in GitHub Desktop.
def reverse_str(str)
letters = str.chars
reversed = []
while letters.length > 0
reversed << letters.pop
end
return reversed.join
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment