Guest User

Untitled

a guest
Dec 14th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.23 KB | None | 0 0
  1. def palindrome?(str)
  2.   regex = /\W/
  3.   @str_reverse = str.reverse
  4.   if @str_reverse =~ str
  5.    @output << "\n Yes , It is a palindrome !: #{@output_stream}"
  6.   else
  7.     @output << "\nCan't parse output: #{@output_stream}"
  8.   end
  9. end
Add Comment
Please, Sign In to add comment