ilyass_palindrome is a sample Ruby gem created in Learn Enough Ruby to Be Dangerous by Michael Hartl.
To install ilyass_palindrome, add this line to your application's Gemfile:
bundle add ilyass_palindromeIf bundler is not being used to manage dependencies, install the gem by executing:
gem `ilyass_palindrome`Then install as follows:
$ bundle install Or install directly using gem:
gem install ilyass_palindromeFirst require the module in you ruby app:
require 'ilyass_palindrome'Now you can use the palindrome? method directly on string and integer literals, e.g:
"Racecar".palindrome?
=> true
12321.palindrome?
=> true
" ".palindrome?
=> falseAfter checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install.
Bug reports and pull requests are welcome on GitHub at https://github.com/ILyass-Lr/ilyass_palindrome.