Module: Ccp::Utils::Colorize

Extended by:
Fore
Includes:
Fore
Included in:
Receivers::Commentable::Comment, Receivers::Profileable
Defined in:
lib/ccp/utils/colorize.rb

Defined Under Namespace

Modules: Back, Bar, Fore, Meter

Constant Summary

Constants included from Fore

Fore::BLACK, Fore::BLUE, Fore::CLEAR, Fore::CYAN, Fore::GREEN, Fore::MAGENTA, Fore::RED, Fore::WHITE, Fore::YELLOW

Class Method Summary collapse

Methods included from Fore

aqua, black, blue, colorize, cyan, green, magenta, pink, purple, red, white, yellow

Class Method Details

.strip(string) ⇒ Object



196
197
198
# File 'lib/ccp/utils/colorize.rb', line 196

def self.strip(string)
  string.gsub(/\x1B\[[0-9;]*[mK]/, '')
end