Sha256: f94f30d98505bbce71543d440ffdb4adb101338c191ae751bd1f75c74cbd7352
Contents?: true
Size: 472 Bytes
Versions: 167
Compression:
Stored size: 472 Bytes
Contents
class String @@colorize = false class << self def colorize=(value) @@colorize = value end def colorize @@colorize end end # of class methods Term::ANSIColor::Attribute.named_attributes.map do |attribute| class_eval(<<-EOS, __FILE__, __LINE__ + 1) def #{attribute.name} if @@colorize Term::ANSIColor.send(#{attribute.name.inspect}, self) else self end end EOS end end
Version data entries
167 entries across 167 versions & 11 rubygems