Module: Color::CSS
- Defined in:
- lib/color/css.rb
Overview
This namespace contains some CSS colour names.
Class Method Summary collapse
-
.[](name) ⇒ Object
Returns the RGB colour for name or
nil
if the name is not valid.
Class Method Details
.[](name) ⇒ Object
Returns the RGB colour for name or nil
if the name is not valid.
18 19 20 |
# File 'lib/color/css.rb', line 18 def self.[](name) @colors[name.to_s.downcase.to_sym] end |