module Colors::NamedColors
Constants
- MAPPING
Public Class Methods
Source
# File lib/colors/named_colors.rb, line 91 def self.nth_color?(name) case name when String # do nothing when Symbol name = name.to_s else return false unless name.respond_to?(:to_str) name = name.to_str end name.match?(/\AC\d+\z/) end
Return whether ‘name` is an item in the color cycle.