Created
February 11, 2015 14:21
-
-
Save jesseract/6eb668a24f9c6b412522 to your computer and use it in GitHub Desktop.
2/11 Ruby Puzzle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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