Module: Color::CSS

Defined in:
lib/gems/color-1.4.0/lib/color/css.rb

Overview

This namespace contains some CSS colour names.

Class Method Summary collapse

Class Method Details

.[](name) ⇒ Object

Returns the RGB colour for name or nil if the name is not valid.



20
21
22
# File 'lib/gems/color-1.4.0/lib/color/css.rb', line 20

def self.[](name)
  @colors[name.to_s.downcase.to_sym]
end