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