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

- old
+ new

@@ -1,15 +1,21 @@ -# frozen_string_literal: true - require_relative "fchagasjr_palindrome/version" -class String +module FchagasjrPalindrome def palindrome? processed_content == processed_content.reverse end private def processed_content - scan(/[a-z0-9]/i).join.downcase + to_s.scan(/[a-z0-9]/i).join.downcase end -end \ No newline at end of file +end + +class String + include FchagasjrPalindrome +end + +class Integer + include FchagasjrPalindrome +end