lib/ephl_palindrome.rb in ephl_palindrome-0.1.0 vs lib/ephl_palindrome.rb in ephl_palindrome-0.2.0

- old
+ new

@@ -1,23 +1,30 @@ # frozen_string_literal: true require_relative "ephl_palindrome/version" -# module EphlPalindrome # class Error < StandardError; end # # Your code goes here... # end -class String +module EphlPalindrome def palindrome? processed_content == processed_content.reverse end private def processed_content - scan(/[a-z]/i).join.to_s.downcase + to_s.scan(/[a-z]/i).join.downcase end +end + +class String + include EphlPalindrome +end + +class Integer + include EphlPalindrome end