require "HumbleCarrot_palindrome/version" class String # Returns true for a palindrome, false otherwise. def palindrome? processed_content == processed_content.reverse end # Returns content for palindrome testing. private def processed_content self.scan(/[a-z]/i).join.downcase end end