Sha256: 8c9434acb716778d88d025d99d7f8c19ca43f32806aea82205688e4a12fadca0

Contents?: true

Size: 277 Bytes

Versions: 11

Compression:

Stored size: 277 Bytes

Contents

module ILessPainfulClient 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

11 entries across 11 versions & 1 rubygems

Version Path
ilesspainfulclient-cucumber-0.1.3 lib/ilesspainfulclient-cucumber/color_helper.rb
ilesspainfulclient-cucumber-0.1.0 lib/ilesspainfulclient-cucumber/color_helper.rb
ilesspainfulclient-cucumber-0.0.9 lib/ilesspainfulclient-cucumber/color_helper.rb
ilesspainfulclient-cucumber-0.0.8 lib/ilesspainfulclient-cucumber/color_helper.rb
ilesspainfulclient-cucumber-0.0.7 lib/ilesspainfulclient-cucumber/color_helper.rb
ilesspainfulclient-cucumber-0.0.6 lib/ilesspainfulclient-cucumber/color_helper.rb
ilesspainfulclient-cucumber-0.0.5 lib/ilesspainfulclient-cucumber/color_helper.rb
ilesspainfulclient-cucumber-0.0.4 lib/ilesspainfulclient-cucumber/color_helper.rb
ilesspainfulclient-cucumber-0.0.3 lib/ilesspainfulclient-cucumber/color_helper.rb
ilesspainfulclient-cucumber-0.0.2 lib/ilesspainfulclient-cucumber/color_helper.rb
ilesspainfulclient-cucumber-0.0.1 lib/ilesspainfulclient-cucumber/color_helper.rb