RubyGems.org

The palindrome check is achieved by first converting the integer to a string, then comparing it to the reversed value of that string. Eg :- 5.palindrome?

installgem install is_palindrome
Authors

Harisankar P S

2,373 total downloads 863 for this version
Owners

820e01609a9f8f0fc0d5167680625b93

Gemfile
gem 'is_palindrome', '~> 1.0.2'
Versions
  1. 1.0.2 October 23, 2012 (3.5 KB)
  2. 1.0.1 October 23, 2012 (3.5 KB)
  3. 1.0.0 October 23, 2012 (3.5 KB)