Sha256: 992fb13514801f90dbcf886607045e6c94fcab260e32846cab418a0f05409a31
Contents?: true
Size: 808 Bytes
Versions: 1
Compression:
Stored size: 808 Bytes
Contents
# RolandmuellerPalindrome `rolandmueller_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 `mhartl_palindrome`, add this line to your application's `Gemfile`: ``` gem 'mhartl_palindrome' ``` Then install as follows: ``` $ bundle install ``` Or install it directly using `gem`: ``` $ gem install rolandmueller_palindrome ``` ## Usage `rolandmueller_palindrome` adds a `palindrome?` method to the `String` class, and can be used as follows: ``` $ irb >> require 'rolandmueller_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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rolandmueller_palindrome-0.1.0 | README.md |