Class: Bio::ColorScheme::Simple

Inherits:
Object
  • Object
show all
Defined in:
lib/bio/util/color_scheme.rb

Overview

A very basic class template for color code referencing.

Direct Known Subclasses

Nucleotide, Taylor, Zappo

Class Method Summary collapse

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

.colorsObject



111
# File 'lib/bio/util/color_scheme.rb', line 111

def self.colors() @colors end