This repository has been archived by the owner. It is now read-only.

regnbue

regnbue Build Status

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

  1. Fork it ( https://github.com/[your-github-name]/regnbue/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

regnbue

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 1
  • almost 8 years ago
  • January 13, 2017
License

MIT License

Links
Synced at

Sun, 24 Nov 2024 18:35:35 GMT

Languages