Module: JulboschPalindrome

Included in:
Integer, String
Defined in:
lib/julbosch_palindrome.rb,
lib/julbosch_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.

Returns:

  • (Boolean)


6
7
8
# File 'lib/julbosch_palindrome.rb', line 6

def palindrome?
  return processed_content == processed_content.reverse
end