Class: Fauve::ColourScheme

Inherits:
Object
  • Object
show all
Defined in:
lib/fauve/colour_scheme.rb

Overview

Representation of a colour_scheme. Holds the current section, reference and colour

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(section_name: :app, reference_name: 0) ⇒ ColourScheme

Returns a new instance of ColourScheme.



11
12
13
14
15
# File 'lib/fauve/colour_scheme.rb', line 11

def initialize(section_name: :app, reference_name: 0)
  @section          = Fauve::Scheme::Section.new(section_name)
  @reference        = Fauve::Scheme::Reference.new(reference_name)
  @colour           = Fauve::Scheme::Colour.new(section, reference).colour
end

Instance Attribute Details

#colourObject Also known as: to_s

Returns the value of attribute colour.



8
9
10
# File 'lib/fauve/colour_scheme.rb', line 8

def colour
  @colour
end