Module: MhartlVideoPalindrome

Included in:
Integer, String
Defined in:
lib/mhartl_video_palindrome.rb,
lib/mhartl_video_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)


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

def palindrome?
  processed_content == processed_content.reverse
end