Sha256: dedaf0bf8150c334ecc91ca61e997c835d97310863f8d8bed0a952b758603be2
Contents?: true
Size: 216 Bytes
Versions: 1
Compression:
Stored size: 216 Bytes
Contents
require "hsztan_palindrome/version" class String def palindrome? processed_content == processed_content.reverse end private def processed_content self.scan(/[a-z]/i).join&.downcase end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hsztan_palindrome-0.1.0 | lib/hsztan_palindrome.rb |