Sha256: c74ec2c056d14addf5b6910d7ac31392607d2c3d45f1c8b3fd83ef4949120d2c

Contents?: true

Size: 712 Bytes

Versions: 11

Compression:

Stored size: 712 Bytes

Contents

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

    # @!visibility private
    def self.red(string)
      colorize(string, 31)
    end

    # @!visibility private
    def self.green(string)
      colorize(string, 32)
    end

    # @!visibility private
    def self.yellow(string)
      colorize(string, 33)
    end

    # @!visibility private
    def self.blue(string)
      colorize(string, 34)
    end

    # @!visibility private
    def self.magenta(string)
      colorize(string, 35)
    end

    # @!visibility private
    def self.cyan(string)
      colorize(string, 36)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
calabash-2.0.0.pre11 lib/calabash/color.rb
calabash-2.0.0.pre10 lib/calabash/color.rb
calabash-2.0.0.pre9 lib/calabash/color.rb
calabash-2.0.0.prelegacy4 lib/calabash/color.rb
calabash-2.0.0.prelegacy3 lib/calabash/color.rb
calabash-2.0.0.prelegacy2 lib/calabash/color.rb
calabash-2.0.0.prelegacy lib/calabash/color.rb
calabash-2.0.0.pre6 lib/calabash/color.rb
calabash-2.0.0.pre5 lib/calabash/color.rb
calabash-2.0.0.pre4 lib/calabash/color.rb
calabash-2.0.0.pre3 lib/calabash/color.rb