Class: ColorizedString

Inherits:
String
  • Object
show all
Extended by:
Colorize::ClassMethods
Includes:
Colorize::InstanceMethods
Defined in:
lib/colorized_string.rb

Overview

ColorizedString class extension.

Class Method Summary collapse

Methods included from Colorize::ClassMethods

color_codes, color_matrix, color_methods, color_samples, colors, disable_colorization, disable_colorization=, mode_codes, modes, modes_methods

Methods included from Colorize::InstanceMethods

#colorize, #colorized?, #uncolorize

Class Method Details

.[](string) ⇒ Object

Shortcut to create ColorizedString with ColorizedString.


16
17
18
# File 'lib/colorized_string.rb', line 16

def self.[](string)
  ColorizedString.new(string)
end