Parent

Methods

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.