Class: String

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

Instance Method Summary collapse

Instance Method Details

#palindrome?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/palindrome_dvs.rb', line 4

def palindrome?
  self == reverse
end