Module: EvevenenoPalindrome
- Defined in:
- lib/eveveneno_palindrome.rb,
lib/eveveneno_palindrome/version.rb
Constant Summary collapse
- VERSION =
"1.1.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. def palindrome?
5 6 7 8 9 10 11 |
# File 'lib/eveveneno_palindrome.rb', line 5 def palindrome? if processed_content.empty? false else processed_content == processed_content.reverse end end |