Class: Rainbow::Color::Named

### Home Classes Methods

### In Files

- lib/rainbow/color.rb

### Parent

Rainbow::Color::Indexed

### Methods

- ::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::Color::Named

### Constants

NAMES

### Public Class Methods

new(ground, name) click to toggle source

    # File lib/rainbow/color.rb, line 66
    def initialize(ground, name)
      unless color_names.include?(name)
        fail ArgumentError,
          "Unknown color name, valid names: #{color_names.join(', ')}"
      end

      super(ground, NAMES[name])
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.