Module: MikefPalindrome
Constant Summary collapse
- VERSION =
'0.3.0'.freeze
Instance Method Summary collapse
-
#palindrome? ⇒ Boolean
returns true for a palindrome, false otherwise.
Instance Method Details
#palindrome? ⇒ Boolean
returns true for a palindrome, false otherwise
5 6 7 |
# File 'lib/mikef_palindrome.rb', line 5 def palindrome? processed_content == processed_content.reverse unless processed_content.empty? end |