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