Class: Bioroebe::ColourScheme::Simple

Inherits:
Object
  • Object
show all
Defined in:
lib/bioroebe/colours/colour_schemes/simple.rb

Overview

Bioroebe::ColourScheme::Simple

Direct Known Subclasses

Helix::Nucleotide, Taylor, Zappo

Class Method Summary collapse

Class Method Details

.[](x) ⇒ Object

#

Bioroebe::ColourScheme::Simple[]

#


29
30
31
32
# File 'lib/bioroebe/colours/colour_schemes/simple.rb', line 29

def self.[](x)
  return if x.nil?
  @colours[x.to_s.upcase]
end

.coloursObject

#

Bioroebe::ColourScheme::Simple.colours

#


37
38
39
# File 'lib/bioroebe/colours/colour_schemes/simple.rb', line 37

def self.colours
  @colours
end