Module: Spectrum::CSS

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



18
19
20
# File 'lib/spectrum/css.rb', line 18

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