Module: Rainbow

### Home Classes Methods

### In Files

- lib/rainbow.rb
- lib/rainbow/color.rb
- lib/rainbow/ext/string.rb
- lib/rainbow/global.rb
- lib/rainbow/null_presenter.rb
- lib/rainbow/presenter.rb
- lib/rainbow/string_utils.rb
- lib/rainbow/version.rb
- lib/rainbow/wrapper.rb

### Namespace

- MODULE Rainbow::Ext
- CLASS Rainbow::Color
- CLASS Rainbow::NullPresenter
- CLASS Rainbow::Presenter
- CLASS Rainbow::StringUtils
- CLASS Rainbow::Wrapper

### Methods

- ::enabled
- ::enabled=
- ::global
- ::new

### Class/Module Index

Quicksearch

- Rainbow
- Rainbow::Color
- Rainbow::Color::Indexed
- Rainbow::Color::Named
- Rainbow::Color::RGB
- Rainbow::Ext
- Rainbow::Ext::String
- Rainbow::Ext::String::InstanceMethods
- Rainbow::NullPresenter
- Rainbow::Presenter
- Rainbow::StringUtils
- Rainbow::Wrapper
- Sickill
- Sickill::Rainbow
- Object

No matching classes.

# Rainbow

### Constants

VERSION

### Public Class Methods

enabled() click to toggle source

    # File lib/rainbow/global.rb, line 9
    def self.enabled
      global.enabled
    end

enabled=(value) click to toggle source

    # File lib/rainbow/global.rb, line 13
    def self.enabled=(value)
      global.enabled = value
    end

global() click to toggle source

    # File lib/rainbow/global.rb, line 5
    def self.global
      @global ||= Wrapper.new
    end

new() click to toggle source

    # File lib/rainbow.rb, line 6
    def self.new
      Wrapper.new(global.enabled)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.