Module: UbaronPalindrome
Constant Summary collapse
- VERSION =
"0.1.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 |
# File 'lib/ubaron_palindrome.rb', line 8 def palindrome? processed_content.empty? ? false : processed_content == processed_content.reverse end |