Module: DrewmPalindrome

Included in:
Integer, String
Defined in:
lib/drewm_palindrome.rb,
lib/drewm_palindrome/version.rb

Constant Summary collapse

VERSION =
"0.3.1"

Instance Method Summary collapse

Instance Method Details

#palindrome?Boolean

Returns true for a plaindrome, false otherwise

Returns:

  • (Boolean)


5
6
7
8
9
10
11
# File 'lib/drewm_palindrome.rb', line 5

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