Sha256: 7e87a3215d5a29a24ee459a94437dac6c586569ded745dfd29a1736470b79698

Contents?: true

Size: 215 Bytes

Versions: 12

Compression:

Stored size: 215 Bytes

Contents

# frozen_string_literal: true

module RailsBestPractices
  class Colorize
    def self.red(message)
      "\e[31m#{message}\e[0m"
    end

    def self.green(message)
      "\e[32m#{message}\e[0m"
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rails_best_practices-1.23.2 lib/rails_best_practices/colorize.rb
rails_best_practices-1.23.1 lib/rails_best_practices/colorize.rb
rails_best_practices-1.23.0 lib/rails_best_practices/colorize.rb
rails_best_practices-1.22.1 lib/rails_best_practices/colorize.rb
rails_best_practices-1.22.0 lib/rails_best_practices/colorize.rb
rails_best_practices-1.21.0 lib/rails_best_practices/colorize.rb
rails_best_practices-1.20.1 lib/rails_best_practices/colorize.rb
rails_best_practices-1.20.0 lib/rails_best_practices/colorize.rb
rails_best_practices-1.19.5 lib/rails_best_practices/colorize.rb
rails_best_practices-1.19.4 lib/rails_best_practices/colorize.rb
rails_best_practices-1.19.3 lib/rails_best_practices/colorize.rb
rails_best_practices-1.19.2 lib/rails_best_practices/colorize.rb