Class: String

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

Instance Method Summary collapse

Instance Method Details

#palindrome?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/christian_palindrome.rb', line 8

def palindrome?
  processed_content == processed_content.reverse
end