Module: Palindrome

Included in:
Integer, String
Defined in:
lib/cellane_palindrome.rb

Instance Method Summary collapse

Instance Method Details

#palindrome?Boolean

Returns:

  • (Boolean)


4
5
6
7
8
9
10
# File 'lib/cellane_palindrome.rb', line 4

def palindrome?
  if processed_content.empty?
    false
  else
    processed_content == processed_content.reverse
  end
end