Sha256: c35975228c7325e57a66cad228611426e5affbdac9b302768a7fa1566e8e8941
Contents?: true
Size: 699 Bytes
Versions: 43
Compression:
Stored size: 699 Bytes
Contents
#-- # Color # Colour management with Ruby # http://rubyforge.org/projects/color # Version 1.4.1 # # Licensed under a MIT-style licence. See Licence.txt in the main # distribution for full licensing information. # # Copyright (c) 2005 - 2010 Austin Ziegler and Matt Lyon #++ require 'color' # This namespace contains some CSS colour names. module Color::CSS # Returns the RGB colour for name or +nil+ if the name is not valid. def self.[](name) @colors[name.to_s.downcase.to_sym] end @colors = {} Color::RGB.constants.each do |const| next if const == "PDF_FORMAT_STR" next if const == "Metallic" @colors[const.downcase.to_sym] ||= Color::RGB.const_get(const) end end
Version data entries
43 entries across 43 versions & 4 rubygems