Module: Color::CSS

Defined in:
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.



17
18
19
# File 'lib/color/css.rb', line 17

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