Class: String

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

Instance Method Summary collapse

Instance Method Details

#palindrome?Boolean

Returns true for a palindrom, false otherwise

Returns:

  • (Boolean)


13
14
15
# File 'lib/rob_palindrome.rb', line 13

def palindrome?
	processed_content == processed_content.reverse
end