Module: Color::CSS
- Defined in:
- lib/extensions/pdf-writer/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/extensions/pdf-writer/color/css.rb', line 18 def self.[](name) @colors[name.to_s.downcase.to_sym] end |