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