lib/kumogata/ext/string_ext.rb in kumogata-0.4.15 vs lib/kumogata/ext/string_ext.rb in kumogata-0.4.16
- old
+ new
@@ -9,10 +9,10 @@
def colorize
@@colorize
end
end # of class methods
- Term::ANSIColor::Attribute.named_attributes.map do |attribute|
+ Term::ANSIColor::Attribute.named_attributes.each do |attribute|
class_eval(<<-EOS, __FILE__, __LINE__ + 1)
def #{attribute.name}
if @@colorize
Term::ANSIColor.send(#{attribute.name.inspect}, self)
else