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