Method: String#normalize_color
- Defined in:
- lib/doing/colors.rb
#normalize_color ⇒ String
Normalize a color name, removing underscores, replacing "bright" with "bold", and converting bgbold to boldbg
126 127 128 |
# File 'lib/doing/colors.rb', line 126 def normalize_color gsub(/_/, '').sub(/bright/i, 'bold').sub(/bgbold/, 'boldbg') end |