Module: BugeaterPalindrome

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

Constant Summary collapse

VERSION =
"0.2.1"

Instance Method Summary collapse

Instance Method Details

#palindrome?Boolean

Returns true for a palindrome, false otherwise.

Returns:

  • (Boolean)


8
9
10
# File 'lib/bugeater_palindrome.rb', line 8

def palindrome?
  processed_content == processed_content.reverse
end