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.24 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.23 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.22 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.21 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.20 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.19 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.17 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.16 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.15 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.14 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.13 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.12 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.11 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.10 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.9 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.8 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.6 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.5 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.4 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.3 lib/calabash-cucumber/color_helper.rb