Sha256: c1da9e604fcb1f402d566d18b6440ffcee1a0ab688c8cb1945b6223bc9823ddf

Contents?: true

Size: 184 Bytes

Versions: 16

Compression:

Stored size: 184 Bytes

Contents

module Colors
  extend self

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

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dependence-0.0.99 lib/dependence/colors.rb
dependence-0.0.98 lib/dependence/colors.rb
dependence-0.0.97 lib/dependence/colors.rb
dependence-0.0.96 lib/dependence/colors.rb
dependence-0.0.94 lib/dependence/colors.rb
dependence-0.0.93 lib/dependence/colors.rb
dependence-0.0.92 lib/dependence/colors.rb
dependence-0.0.91 lib/dependence/colors.rb
dependence-0.0.9 lib/dependence/colors.rb
dependence-0.0.8 lib/dependence/colors.rb
dependence-0.0.7 lib/dependence/colors.rb
dependence-0.0.6 lib/dependence/colors.rb
dependence-0.0.4 lib/dependence/colors.rb
dependence-0.0.3 lib/dependence/colors.rb
dependence-0.0.2 lib/dependence/colors.rb
dependence-0.0.1 lib/dependence/colors.rb