Skip to content

Instantly share code, notes, and snippets.

@jesseract
Created February 11, 2015 14:21
Show Gist options
  • Save jesseract/6eb668a24f9c6b412522 to your computer and use it in GitHub Desktop.
Save jesseract/6eb668a24f9c6b412522 to your computer and use it in GitHub Desktop.
2/11 Ruby Puzzle
def palindrome?(str)
str = str.downcase
str == str.reverse
end
#there's a gets.chomp in here somewhere, I'm sure of it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment