Module: Shog::Extensions::Colored
Instance Method Summary collapse
-
#uncolorize ⇒ Object
Removes any ASCII color encoding.
Instance Method Details
#uncolorize ⇒ Object
Removes any ASCII color encoding
7 8 9 10 |
# File 'lib/shog/extensions.rb', line 7 def uncolorize # http://refiddle.com/18rj gsub /\e\[\d+(;\d+)*m/, '' end |