Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/oh_my_method/string.rb
Instance Method Summary collapse
Instance Method Details
#palindrome? ⇒ Boolean
2 3 4 |
# File 'lib/oh_my_method/string.rb', line 2 def palindrome? self == self.reverse end |