Class: ColorSwatchCollection::Roygbiv
- Inherits:
-
Object
- Object
- ColorSwatchCollection::Roygbiv
- Defined in:
- lib/color_swatch_collection/roygbiv.rb
Class Method Summary collapse
Class Method Details
.colours ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/color_swatch_collection/roygbiv.rb', line 5 def self.colours [ { name: 'red', hex: '#FF0000' }, { name: 'orange', hex: '#FFA500' }, { name: 'yellow', hex: '#FFFF00' }, { name: 'green', hex: '#008000' }, { name: 'blue', hex: '#0000FF' }, { name: 'indigo', hex: '#4B0082' }, { name: 'violet', hex: '#EE82EE' } ] end |