RubyGems Navigation menu

colored2 4.0.0

This is a heavily modified fork of http://github.com/defunkt/colored gem, with many sensible pull requests combined. Since the authors of the original gem no longer support it, this might, perhaps, be considered a good alternative. Simple gem that adds various color methods to String class, and can be used as follows: require 'colored2' puts 'this is red'.red puts 'this is red with a yellow background'.red.on.yellow puts 'this is red with and italic'.red.italic puts 'this is green bold'.green.bold << ' and regular'.green puts 'this is really bold blue on white but reversed'.bold.blue.on.white.reversed puts 'this is regular, but '.red! << 'this is red '.yellow! << ' and yellow.'.no_color! puts ('this is regular, but '.red! do 'this is red '.yellow! do ' and yellow.'.no_color! end end)

Gemfile:
= 复制到剪贴板 已复制!

安装:
=

版本列表:

  1. 4.0.0 - August 24, 2023 (8.5 KB)
  2. 3.1.2 - February 14, 2017 (10.0 KB)
  3. 2.0.2 - March 10, 2016 (9.0 KB)
  4. 2.0.0 - March 10, 2016 (9.0 KB)
显示所有版本 (共 9 个)

业主:

推送:

作者:

  • Chris Wanstrath, Konstantin Gredeskoul

SHA 256 校验和:

56b9fd6463f1b17f6367ea9c56fe477b96cdc7ab50dcb96aff6f7a8ee53340fe

下载总量 135,405,105

这个版本 71,689

许可:

MIT

需要的 Ruby 版本: >= 3.1

新的版本需要开启多因素验证: true

使用多因素验证发布的版本: true

链接: