Skip to content

Instantly share code, notes, and snippets.

@jonathanpike
Created October 20, 2015 16:52
Show Gist options
  • Save jonathanpike/ef134a14bd533545d8e9 to your computer and use it in GitHub Desktop.
Save jonathanpike/ef134a14bd533545d8e9 to your computer and use it in GitHub Desktop.
def palindrome(string)
data = string.gsub(/[^A-Za-z]/, "").split("")
data == data.reverse
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment