Class: String::Colorizer

### Home Classes Methods

### In Files

- lib/padrino-support/core_ext/string/colorize.rb

### Parent

Object

### Methods

- ::colors
- ::modes

### Class/Module Index

Quicksearch

- String
- String::Colorizer
- FileSet
- Module
- Object
- ObjectSpace

No matching classes.

# String::Colorizer

Used to colorize strings for the shell

### Public Class Methods

colors() click to toggle source

Returns colors integer mapping

    # File lib/padrino-support/core_ext/string/colorize.rb, line 29
    def self.colors
      @_colors ||= {
        :default => 9,
        :black   => 30,
        :red     => 31,
        :green   => 32,
        :yellow  => 33,
        :blue    => 34,
        :magenta => 35,
        :cyan    => 36,
        :white   => 37
      }
    end

modes() click to toggle source

Returns modes integer mapping

    # File lib/padrino-support/core_ext/string/colorize.rb, line 44
    def self.modes
      @_modes ||= {
        :default => 0,
        :bold    => 1
      }
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.