Module: TimmyluPalindrome
- Defined in:
- lib/timmylu_palindrome.rb,
lib/timmylu_palindrome/version.rb
Constant Summary collapse
- VERSION =
"0.1.2"
Instance Method Summary collapse
-
#palindrome? ⇒ Boolean
Returns true for a palindrome, false otherwise.
Instance Method Details
#palindrome? ⇒ Boolean
Returns true for a palindrome, false otherwise.
7 8 9 10 11 12 13 |
# File 'lib/timmylu_palindrome.rb', line 7 def palindrome? if self.strip.empty? == false processed_content == processed_content.reverse else puts "GET OUTTA HERE NOOB, no empty spaces allowed!" end end |