Sha256: 348af639e6e50c5030640ace220e0fe4ad5932c26197f0e606d00b8ac9b74012
Contents?: true
Size: 302 Bytes
Versions: 1
Compression:
Stored size: 302 Bytes
Contents
require "chikari_palindrome/version" class String # Returns true for a palindrome, false otherwise. def palindrome? processed_content == processed_content.reverse end private # Returns content for palindrome testing. def processed_content scan(/[a-z]/i).join.downcase end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chikari_palindrome-0.1.0 | vendor/cache/ruby/2.7.0/gems/chikari_palindrome-0.1.0/lib/chikari_palindrome.rb |