Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/blessing_palindrome.rb
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 |
# File 'lib/blessing_palindrome.rb', line 8 def palindrome? processed_content == processed_content.reverse end |