Module: Bl1ndyPalindrome
Constant Summary collapse
- VERSION =
'0.3.0'
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.
7 8 9 10 11 |
# File 'lib/bl1ndy_palindrome.rb', line 7 def palindrome? return false if processed_content.empty? processed_content == processed_content.reverse end |