Skip to content

Instantly share code, notes, and snippets.

Created April 7, 2013 18:03
Show Gist options
  • Save anonymous/ff3a94e9cbed7b0b2f68 to your computer and use it in GitHub Desktop.
Save anonymous/ff3a94e9cbed7b0b2f68 to your computer and use it in GitHub Desktop.
def palindrome?(str)
normalString = str
reverseString = str.reverse
if ( normalString).each.match((reverseString).each)
return true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment