Module: EndtoendpaperPalindrome

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

Constant Summary collapse

VERSION =
"0.2.0"

Instance Method Summary collapse

Instance Method Details

#palindrome?Boolean

Returns true for a palindrome, false otherwise.



7
8
9
# File 'lib/endtoendpaper_palindrome.rb', line 7

def palindrome?
  processed_content == processed_content.reverse
end