String::IRC is a module to IRC-friendlily colorize text.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install string-irc
require 'string/irc' Strint::IRC.colorize 'Hello', :white, :red #=> Text whose foreground color is white and background color is red Strint::IRC.colorize 'Hello', :red #=> Text whose foreground color is red and background color is not designated Strint::IRC.colorize 'Hello', nil, :red #=> Nothing changes. Strint::IRC.bold 'Hello' #=> Makes the text bold. Strint::IRC.underline 'Hello' #=> Makes the text underlined. Strint::IRC.italic 'Hello' #=> Makes the text italic.
require 'string/irc/core_ext/string' 'Hello'.irc_colorize :white, :red #=> Same as above. 'Hello'.irc_bold #=> Same as above. 'Hello'.irc_underline #=> Same as above. 'Hello'.irc_italic #=> Same as above.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Added some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request