Sha256: 94ff1b2871834279132546911fce80778e8cfc2c2a77a7353d9de47224bb9079
Contents?: true
Size: 657 Bytes
Versions: 61
Compression:
Stored size: 657 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| next if extra == 'clear' 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
61 entries across 61 versions & 4 rubygems