Sha256: e9d59e00f290a97f4198eff0244bc36fa6830f3b838bdfa6cef8b5204ae32d10

Contents?: true

Size: 213 Bytes

Versions: 1

Compression:

Stored size: 213 Bytes

Contents

require "jkoo_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
jkoo_palindrome-0.1.0 lib/jkoo_palindrome.rb