Sha256: 6e937d1f920b09e9c1ca8d65550fe4464bfe8662e652c5ca8882d2960c41ebb1

Contents?: true

Size: 281 Bytes

Versions: 2

Compression:

Stored size: 281 Bytes

Contents

class String
  def green
    "\e[32m#{self}\e[0m"
  end

  def magenta
    "\e[35m#{self}\e[0m"
  end

  def cyan
    "\e[36m#{self}\e[0m"
  end

  def bold
    "\e[1m#{self}\e[22m"
  end

  def italic
    "\e[3m#{self}\e[23m"
  end

  def blink
    "\e[5m#{self}\e[25m"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lazy_navigator-2.0.0 lib/colorize/colorize.rb
lazy_navigator-1.5.0 lib/colorize/colorize.rb