Class: String::Colorizer
- Defined in:
- padrino-support/lib/padrino-support/core_ext/string/colorize.rb
Overview
Used to colorize strings for the shell
Class Method Summary collapse
-
.colors ⇒ Object
Returns colors integer mapping.
-
.modes ⇒ Object
Returns modes integer mapping.
Class Method Details
.colors ⇒ Object
Returns colors integer mapping
18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'padrino-support/lib/padrino-support/core_ext/string/colorize.rb', line 18 def self.colors @_colors ||= { :default => 9, :black => 30, :red => 31, :green => 32, :yellow => 33, :blue => 34, :magenta => 35, :cyan => 36, :white => 37 } end |
.modes ⇒ Object
Returns modes integer mapping
33 34 35 36 37 38 |
# File 'padrino-support/lib/padrino-support/core_ext/string/colorize.rb', line 33 def self.modes @_modes ||= { :default => 0, :bold => 1 } end |