Class: Color::RGB::JP::Base::NamedRGB

### Home Classes Methods

### In Files

- lib/color/rgb/jp/base/named_rgb.rb

### Parent

Object

### Methods

- ::new
- #to_s

### Class/Module Index

Quicksearch

- Color
- Color::RGB
- Color::RGB::JP
- Color::RGB::JP::Base
- Color::RGB::JP::Base::ColorName
- Color::RGB::JP::Base::Encode
- Color::RGB::JP::Base::NamedRGB
- Color::RGB::JP::Base::Pallet
- Color::RGB::JP::Compiler
- Color::RGB::JP::Compiler::Command
- Color::RGB::JP::Compiler::Compiler
- Color::RGB::JP::VERSION

No matching classes.

# Color::RGB::JP::Base::NamedRGB

### Attributes

name[R]
rgb[R]

### Public Class Methods

new(name, rgb) click to toggle source

    # File lib/color/rgb/jp/base/named_rgb.rb, line 5
    def initialize(name, rgb)
      @name = name
      @rgb = rgb
    end

### Public Instance Methods

to_s() click to toggle source

    # File lib/color/rgb/jp/base/named_rgb.rb, line 10
    def to_s
      "%s (%s)" % [name.romaji, rgb.html]
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.