Module: Qippet::Colors
- Defined in:
- lib/qippet/colors.rb
Overview
Module contains all colors for code
Constant Summary collapse
- DEFAULT_COLORS =
{ w: "red", o: "black", nb: "blue", c1: "gray", s2: "#FF7F50", no: "#50D0FF" }.freeze
Class Method Summary collapse
Class Method Details
.get_color_by_shortname(shortname) ⇒ Object
15 16 17 |
# File 'lib/qippet/colors.rb', line 15 def self.get_color_by_shortname(shortname) DEFAULT_COLORS.fetch(shortname.to_sym, "black") end |