brewersfan1976

is_case_insensitive_palindrome.rb

Mar 8th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.19 KB | None | 0 0
  1. def isCaseInsensitivePalindrome(inputString)
  2.     string = inputString.downcase
  3.    
  4.     if string == string.reverse then
  5.        return true
  6.     else
  7.        return false
  8.     end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment