Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/klap_hellogem.rb
Overview
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.
10 11 12 |
# File 'lib/klap_hellogem.rb', line 10 def palindrome? processed_content == processed_content.reverse end |