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.44 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.43 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.42 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.41 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.40 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.39 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.38 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.37 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.36 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.35 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.34 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.33 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.32 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.31 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.30 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.29 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.28 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.27 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.26 lib/calabash-cucumber/color_helper.rb
calabash-cucumber-0.9.25 lib/calabash-cucumber/color_helper.rb