Priscilla
Frock up your console messages. :dancer: :dancer: :dancer:
Why Priscilla
Because of Priscilla, Queen of the Desert. Don't let your console messages drown in a wall of text, make them stand out!
Install
Add this line to your application's Gemfile:
gem 'priscilla'
And then execute:
$ bundle
Or install it yourself as:
$ gem install priscilla
Use
Require the gem:
require 'priscilla'
Use pr
to frock up your console messages
pr "A cock in a frock on a rock"
Result
Decorators
Priscilla supports a lot of different decorators:
Strings
Colored Strings
Unicode Emojis
Text Emojis
Configure
If you're using rails create an initializer in config/initializers/priscilla.rb
:
Priscilla.configure do |c|
c.width = 80 # default
c.decorator = ':dancer: ' # default
end
Contribute
- Fork it ( http://github.com/Arkham/priscilla/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 new Pull Request