Sha256: 2beff11e592fd58a04846b92aaf5b39dbbf3de7dcbfd8ae7a6c7a8f9a04a8544

Contents?: true

Size: 250 Bytes

Versions: 6

Compression:

Stored size: 250 Bytes

Contents

# Displaying text in color
module ColorHelpers

  def red(text)
    "\e[31m#{text}\e[0m"
  end

  def green(text)
    "\e[32m#{text}\e[0m"
  end

  def yellow(text)
    "\e[33m#{text}\e[0m"
  end

  def cyan(text)
    "\e[36m#{text}\e[0m"
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rspec_parallel-0.1.5 lib/color_helper.rb
rspec_parallel-0.1.4 lib/color_helper.rb
rspec_parallel-0.1.3 lib/color_helper.rb
rspec_parallel-0.1.2 lib/color_helper.rb
rspec_parallel-0.1.1 lib/color_helper.rb
rspec_parallel-0.1.0 lib/color_helper.rb