class Integer

Overrides Default Integer Class by adding {palindrome?} method.

Public Instance Methods

palindrome?() click to toggle source

@return [Boolean] Whether or not the Integer is a palindrome.

# File lib/palindrome_ext/integer.rb, line 8
def palindrome?
  to_s.palindrome?
end