Sha256: 8d9e8e6b5e6ddb1bcdc06a7603b700f9c92dee2385e73583fe863370a422441c

Contents?: true

Size: 523 Bytes

Versions: 5

Compression:

Stored size: 523 Bytes

Contents

module Calabash
  # @!visibility private
  module Color
    def self.colorize(string, color)
      "\e[#{color}m#{string}\e[0m"
    end

    def self.red(string)
      colorize(string, 31)
    end

    def self.green(string)
      colorize(string, 32)
    end

    def self.yellow(string)
      colorize(string, 33)
    end

    def self.blue(string)
      colorize(string, 34)
    end

    def self.magenta(string)
      colorize(string, 35)
    end

    def self.cyan(string)
      colorize(string, 36)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
calabash-2.0.0.pre2 lib/calabash/color.rb
calabash-2.0.0.pre1 lib/calabash/color.rb
calabash-1.9.9.pre3 lib/calabash/color.rb
calabash-1.9.9.pre2 lib/calabash/color.rb
calabash-1.9.9.pre1 lib/calabash/color.rb