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.8.16 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.8.15 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.8.14 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.8.13 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.8.12 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.8.11 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.8.10 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.8.8 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.8.7 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.8.6 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.8.5 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.8.4 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.8.3 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.8.2 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.8.1 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.8.0 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.7.8 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.7.7 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.7.6 lib/frank-cucumber/color_helper.rb
frank-cucumber-0.7.5 lib/frank-cucumber/color_helper.rb