Sha256: ae207fcd30c4bf4433365ff819c6c7606747462b8798d661e624143fdd76fa91
Contents?: true
Size: 812 Bytes
Versions: 4
Compression:
Stored size: 812 Bytes
Contents
# Palindrome detector `juandpineiro_palindrome` is a sample Ruby gem created in [*Learn Enough Ruby to Be Dangerous*](https://www.learnenough.com/ruby-tutorial) by Michael Hartl. ## Installation To install `juandpineiro_palindrome`, add this line to your application's `Gemfile`: ``` gem 'juandpineiro_palindrome' ``` Then install as follows: ``` $ bundle install ``` Or install it directly using `gem`: ``` $ gem install juandpineiro_palindrome ``` ## Usage `juandpineiro_palindrome` adds a `palindrome?` method to the `String` class, and can be used as follows: ``` $ irb >> require 'juandpineiro_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 ```
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
juandpineiro_palindrome-0.2.2 | README.md |
juandpineiro_palindrome-0.2.1 | README.md |
juandpineiro_palindrome-0.2.0 | README.md |
juandpineiro_palindrome-0.1.0 | README.md |