Sha256: 79049da516f693d9555b96c090a237c89ad9ba5cb12053658b8c7baee1d49d62
Contents?: true
Size: 909 Bytes
Versions: 3
Compression:
Stored size: 909 Bytes
Contents
# Palindrome detector `kpietrzyk_palindrome` is a simple Ruby gem created in [Learn Enough to Be Dangerous](https://www.learnenough.com/) by Michael Hartl. ### Installation To Install `kpietrzyk_palindrome`, add this line to your application's Gemfile: ```ruby gem 'kpietrzyk_palindrome' ``` Then install as follows: ```bash $ bundle install ``` Or install it directly using `gem`: ```bash $ gem install kpietrzyk_palindrome ``` ## Usage `kpietrzyk_palindrome` adds a `palindrome?` method to the `String` class, and can be used as follows: ``` $ irb >> require 'kpietrzyk_palindrome' >> "honey badger".palindrome? => false >> "deified".palindrome? => true >> "Able was I, ere I saw Elba.".palindrome? => true >> phrase = "Madam, I'm Adam." >> phrase.palindrome? => true ``` ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kpietrzk_palindrome-0.2.1 | README.md |
kpietrzk_palindrome-0.2.0 | README.md |
kpietrzk_palindrome-0.1.0 | README.md |