PetName
Installation
Add this line to your application's Gemfile:
gem 'petname'
And then execute:
$ bundle
Or install it yourself as:
$ gem install petname
Usage
require 'petname'
pn = PetName::Generator.new
# returns random name consisted of two words and separated with '-'
pn.generate # => e.g. "intercentral-parthenia"
# and you can specify separator and number of words
pn.generate separator: "!!!" # => e.g. "simulacral!!!sherika"
pn.generate words: 5 # => e.g. "theistically-subsuperficially-synaptically-metapneustic-nedra"
pn.generate separator: "**", words: 3 # => e.g. "ridiculously**nontypographical**jacque"
Contributing
- Fork it ( https://github.com/polamjag/petname/fork )
- 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 a new Pull Request
Acknowledgment
This gem is a Ruby port of dustinkirkland/petname.