Skip to content

Instantly share code, notes, and snippets.

@offby1
Created June 15, 2012 03:58
Show Gist options
  • Save offby1/2934600 to your computer and use it in GitHub Desktop.
Save offby1/2934600 to your computer and use it in GitHub Desktop.
def my_reverse(s)
reversed = []
s.each_char do |char|
reversed.unshift(char)
end
reversed.join('')
end
puts my_reverse('Drink from the mirror and see thyself in the moon..') #crappy made up schonberg reference
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment