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.2.1 lib/ext/string.rb
gitcycle-0.2.0 lib/ext/string.rb
gitcycle-0.1.22 lib/ext/string.rb
gitcycle-0.1.21 lib/ext/string.rb
gitcycle-0.1.20 lib/ext/string.rb
gitcycle-0.1.19 lib/ext/string.rb
gitcycle-0.1.18 lib/ext/string.rb
gitcycle-0.1.17 lib/ext/string.rb
gitcycle-0.1.16 lib/ext/string.rb
gitcycle-0.1.15 lib/ext/string.rb
gitcycle-0.1.14 lib/ext/string.rb
gitcycle-0.1.13 lib/ext/string.rb
gitcycle-0.1.11 lib/ext/string.rb
gitcycle-0.1.10 lib/ext/string.rb
gitcycle-0.1.9 lib/ext/string.rb
gitcycle-0.1.8 lib/ext/string.rb
gitcycle-0.1.7 lib/ext/string.rb
gitcycle-0.1.6 lib/ext/string.rb
gitcycle-0.1.5 lib/ext/string.rb
gitcycle-0.1.4 lib/ext/string.rb