Module: MattsPalindrome

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

Defined Under Namespace

Classes: Error

Constant Summary collapse

VERSION =
"0.2.0"

Instance Method Summary collapse

Instance Method Details

#palindrome?Boolean

Your code goes here…

Returns:

  • (Boolean)


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

def palindrome?
  processed_content == processed_content.reverse
end