lib/hsztan_palindrome.rb in hsztan_palindrome-0.1.01 vs lib/hsztan_palindrome.rb in hsztan_palindrome-0.2.0

- old
+ new

@@ -1,14 +1,22 @@ require "hsztan_palindrome/version" -class String +module HsztanPalindrome def palindrome? processed_content == processed_content.reverse end private def processed_content - self.scan(/[a-z]/i).join.downcase + self.to_s.scan(/[a-z\d]/i).join.downcase end +end + +class String + include HsztanPalindrome +end + +class Integer + include HsztanPalindrome end \ No newline at end of file