Sha256: c9901bb3f1b1fa5cc40010aebece07f8df36942e2909cea2a8ebf6af1a167f25
Contents?: true
Size: 347 Bytes
Versions: 1
Compression:
Stored size: 347 Bytes
Contents
# frozen_string_literal: true require_relative "ephl_palindrome/version" # module EphlPalindrome # class Error < StandardError; end # # Your code goes here... # end class String def palindrome? processed_content == processed_content.reverse end private def processed_content scan(/[a-z]/i).join.to_s.downcase end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ephl_palindrome-0.1.0 | lib/ephl_palindrome.rb |