Class: Bio::ColorScheme::Simple
Overview
A very basic class template for color code referencing.
Direct Known Subclasses
Class Method Summary collapse
-
.[](x) ⇒ Object
:nodoc:.
- .colors ⇒ Object
Class Method Details
.[](x) ⇒ Object
:nodoc:
105 106 107 108 109 |
# File 'lib/bio/util/color_scheme.rb', line 105 def self.[](x) return if x.nil? # accept symbols and any case @colors[x.to_s.upcase] end |