Sha256: 4e1c0cf6bca2394b3b0fec47f5d56aebe670c60cef997c974f57f099f1c7ef39
Contents?: true
Size: 317 Bytes
Versions: 1
Compression:
Stored size: 317 Bytes
Contents
require "jkoo_palindrome/version" module JkooPalindrome def palindrome? processed_content == processed_content.reverse end private def processed_content self.to_s.scan(/[a-z\d]/i).join.downcase end end class String include JkooPalindrome end class Integer include JkooPalindrome end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jkoo_palindrome-0.2.0 | lib/jkoo_palindrome.rb |