Class: String

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

Instance Method Summary collapse

Instance Method Details

#palindrome?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/ggingmin_palindrome.rb', line 5

def palindrome?
  processed_content == processed_content.reverse
end