Class: Archimate::Color
- Inherits:
-
Object
- Object
- Archimate::Color
- Defined in:
- lib/archimate/color.rb
Class Method Summary collapse
- .color(str, args) ⇒ Object
- .data_model(str) ⇒ Object
- .layer_color(layer, str) ⇒ Object
- .uncolor(str) ⇒ Object
Class Method Details
.color(str, args) ⇒ Object
45 46 47 |
# File 'lib/archimate/color.rb', line 45 def self.color(str, args) HighLine.color(str, args) end |
.data_model(str) ⇒ Object
41 42 43 |
# File 'lib/archimate/color.rb', line 41 def self.data_model(str) layer_color(str, str) end |
.layer_color(layer, str) ⇒ Object
35 36 37 38 39 |
# File 'lib/archimate/color.rb', line 35 def self.layer_color(layer, str) layer_sym = layer&.to_sym sym = HighLine.color_scheme.include?(layer_sym) ? layer_sym : :unknown_layer color(str, sym) end |
.uncolor(str) ⇒ Object
49 50 51 |
# File 'lib/archimate/color.rb', line 49 def self.uncolor(str) HighLine.uncolor(str) end |