Class: Fauve::ColourScheme
- Inherits:
-
Object
- Object
- Fauve::ColourScheme
- Defined in:
- lib/fauve/colour_scheme.rb
Overview
Representation of a colour_scheme. Holds the current section, reference and colour
Instance Attribute Summary collapse
-
#colour ⇒ Object
(also: #to_s)
Returns the value of attribute colour.
Instance Method Summary collapse
-
#initialize(section_name: :app, reference_name: 0) ⇒ ColourScheme
constructor
A new instance of ColourScheme.
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
#colour ⇒ Object 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 |