Haikuable
Garth: "Does anyone else find this weird? I mean, we're looking down on Wayne's basement. Only that's not Wayne's basement. Isn't that weird?" Everyone: "That's weird…" Wayne: "Garth, that was a haiku!"
True to the simplicity and elegance of the Japanese poetic form, haikuable is a very simple gem. It has a single method. It takes a string, and returns a boolean based on whether or not that string is a haiku.
Usage
>> require 'haikuable'
=> true
>> poem = 'at the age old pond a frog leaps into water a deep resonance'
=> "at the age old pond a frog leaps into water a deep resonance"
>> Haikuable::Checker.new(poem).is_haiku?
=> true
Installation
Add this line to your application's Gemfile:
gem 'haikuable'
And then execute:
$ bundle
Or install it yourself as:
$ gem install haikuable
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request