Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/ewel_palindrome.rb
Overview
Returns true for palindrome, false otherwise
Instance Method Summary collapse
Instance Method Details
#palindrome? ⇒ Boolean
5 6 7 |
# File 'lib/ewel_palindrome.rb', line 5 def palindrome? processed_content == processed_content.reverse end |