Module: FantasticPalindrome
- Defined in:
- lib/fantastic_palindrome.rb,
lib/fantastic_palindrome/version.rb
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.
6 7 8 |
# File 'lib/fantastic_palindrome.rb', line 6 def palindrome? processed_content.length > 0 && processed_content == processed_content.reverse end |