Module: ZebraPalindrome

Included in:
Integer, String
Defined in:
lib/zebra_palindrome.rb,
lib/zebra_palindrome/version.rb

Constant Summary collapse

VERSION =
"0.1.24"

Instance Method Summary collapse

Instance Method Details

#palindrome?Boolean

Returns:

  • (Boolean)


4
5
6
7
# File 'lib/zebra_palindrome.rb', line 4

def palindrome?
  !processed_content.empty? &&
    processed_content == processed_content.reverse
end