A palindrome is a word, phrase, number, or other sequence of units that can be read the same way in either direction, with general allowances for adjustments to punctuation and word dividers. - Wikipedia
The Palindrome gem extends the String class with the
$ gem install palindrome
> require 'palindrome' => true > "Go hang a salami, I'm a lasagna hog.".palindrome? => true > "No palindrome here".palindrome? => false
Palindrome gem is released under the MIT license.