regnbue
Just some helper functions to format/color strings.
Installation
Add this to your application's shard.yml
:
dependencies:
regnbue:
github: ragmaanir/regnbue
Usage
require "regnbue"
Regnbue.format_large_number(1234567)
#=> "1,234,567"
Regnbue.format_string({
:white,
"This is ",
{:yellow,
"the ",
{:red, "last "},
"warning ",
},
"for all of ",
{:red, "you!"},
})
Contributing
- Fork it ( https://github.com/[your-github-name]/regnbue/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
Contributors
- Ragmaanir - creator, maintainer