Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/rob_palindrome.rb
Instance Method Summary collapse
-
#palindrome? ⇒ Boolean
Returns true for a palindrom, false otherwise.
Instance Method Details
#palindrome? ⇒ Boolean
Returns true for a palindrom, false otherwise
13 14 15 |
# File 'lib/rob_palindrome.rb', line 13 def palindrome? processed_content == processed_content.reverse end |