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.3.5 lib/ext/string.rb
gitcycle-0.3.4 lib/ext/string.rb
gitcycle-0.3.3 lib/ext/string.rb
gitcycle-0.3.2 lib/ext/string.rb
gitcycle-0.3.1 lib/ext/string.rb
gitcycle-0.3.0 lib/ext/string.rb
gitcycle-0.2.33 lib/ext/string.rb
gitcycle-0.2.32 lib/ext/string.rb
stasis-0.2.0 lib/ext/string.rb
gitcycle-0.2.31 lib/ext/string.rb
gitcycle-0.2.30 lib/ext/string.rb
gitcycle-0.2.29 lib/ext/string.rb
gitcycle-0.2.28 lib/ext/string.rb
gitcycle-0.2.27 lib/ext/string.rb
gitcycle-0.2.26 lib/ext/string.rb
gitcycle-0.2.25 lib/ext/string.rb
gitcycle-0.2.24 lib/ext/string.rb
gitcycle-0.2.23 lib/ext/string.rb
gitcycle-0.2.22 lib/ext/string.rb
gitcycle-0.2.21 lib/ext/string.rb