Module: Tmart134Palindrome
- Defined in:
- lib/tmart134_palindrome.rb,
lib/tmart134_palindrome/version.rb
Constant Summary collapse
- VERSION =
"0.2.1"
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
8 9 10 11 12 13 14 |
# File 'lib/tmart134_palindrome.rb', line 8 def palindrome? if processed_content.empty? false else processed_content == processed_content.reverse end end |