Sha256: 47faef783284cb90cb0b8925003bd37b4e54679790dfa54467b3e44565057ab1

Contents?: true

Size: 912 Bytes

Versions: 4

Compression:

Stored size: 912 Bytes

Contents

# Palindrome detector

`julbosch_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 `julbosch_palindrome`, add this line to your application's `Gemfile`:

```
gem 'julbosch_palindrome'
```

Then install as follows:

```
$ bundle install
```

Or install it directly using `gem`:

```
$ gem install julbosch_palindrome
```

## Usage

`julbosch_palindrome` adds a `palindrome?` method to the `String` class, and can be used as follows:

```
$ irb
>> require 'julbosch_palindrome'
>> "honey badger".palindrome?
=> false
>> "deified".palindrome?
=> true
>> "Able was I, ere I saw Elba.".palindrom e?
=> 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

4 entries across 4 versions & 1 rubygems

Version Path
julbosch_palindrome-0.2.2 README.md
julbosch_palindrome-0.2.1 README.md
julbosch_palindrome-0.2.0 README.md
julbosch_palindrome-0.1.0 README.md