Sha256: 1575e97a4b384a8bebe557d6c939c6cccb78cf6815d3711dfcc84b0f1b08a860

Contents?: true

Size: 202 Bytes

Versions: 64

Compression:

Stored size: 202 Bytes

Contents

class String

  # Colors

  def blue
    "\e[34m#{self}\e[0m"
  end

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

  def red
    "\e[31m#{self}\e[0m"
  end

  def yellow
    "\e[33m#{self}\e[0m"
  end
end

Version data entries

64 entries across 64 versions & 2 rubygems

Version Path
gitcycle-0.1.3 lib/ext/string.rb
gitcycle-0.1.2 lib/ext/string.rb
gitcycle-0.1.1 lib/ext/string.rb
gitcycle-0.1.0 lib/ext/string.rb