Sha256: 5d593e2e1720abc06542af2cab5f8473b07f96f2712d4dd3c6e32949f52dcd63
Contents?: true
Size: 628 Bytes
Versions: 28
Compression:
Stored size: 628 Bytes
Contents
# This code overwrites the methods from the colored gem # via https://github.com/defunkt/colored/blob/master/lib/colored.rb require 'colored' class String Colored::COLORS.keys.each do |color| define_method(color) do self # do nothing with the string, but return it end end Colored::EXTRAS.keys.each do |extra| define_method(extra) do self # do nothing with the string, but return it end end end # If a plugin uses the colorize gem, we also want to disable that begin require 'colorize' String.disable_colorization = true rescue LoadError # Colorize gem is not used by any plugin end
Version data entries
28 entries across 28 versions & 1 rubygems