Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/palindromic/string.rb

Instance Method Summary collapse

Instance Method Details

#palindrome?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/palindromic/string.rb', line 2

def palindrome?
    self == self.reverse
end