module Palenque

Constants

VERSION

Public Class Methods

palindrome?(word) click to toggle source
# File lib/palenque.rb, line 4
def self.palindrome?(word)
  if word.is_a?(String) || word.is_a?(Integer)
    word = word.to_s.downcase
    word == word.reverse
  else
    false
  end
end