Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/abaj_palindrome.rb
Overview
module AbajPalindrome
class Error < StandardError; end
# Your code goes here...
end
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.
11 12 13 |
# File 'lib/abaj_palindrome.rb', line 11 def palindrome? processed_content == processed_content.reverse end |