Sha256: e006631f045191aaeda0700d76b74d55b1bb23fdc39aac227d5d837fdba45bb8

Contents?: true

Size: 264 Bytes

Versions: 91

Compression:

Stored size: 264 Bytes

Contents

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

91 entries across 91 versions & 4 rubygems

Version Path
frank-cucumber-0.7.4 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.7.3 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.7.1 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.7.0 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.6.1 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.6.0 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.5.5 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.5.4 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.5.2.1 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.5.2 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.5.1 lib/frank-cucumber/color_helper.rb