class PalindromeString

Public Instance Methods

palindrome?() click to toggle source
# File lib/palindrome_string_prashant.rb, line 3
def palindrome?
 self.reverse.eql?(self)
end