Sha256: 4b447856854b08432e9cf932d95c829386380bd04008d29e5851cbade8eb7ce0

Contents?: true

Size: 267 Bytes

Versions: 63

Compression:

Stored size: 267 Bytes

Contents

module Calabash module Cucumber

module ColorHelper
  def colorize(text, color_code)
    "\e[#{color_code}m#{text}\e[0m"
  end

  def red(text); colorize(text, 31); end
  def green(text); colorize(text, 32); end
  def blue(text); colorize(text, 34); end
end

end end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
calabash-cucumber-0.9.74 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.72 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.70 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.68 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.67 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.66 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.65 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.63 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.62 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.61 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.60 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.54 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.53 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.51 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.50 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.49 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.48 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.47 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.46 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.45 lib/calabash-cucumber/color_helper.rb